Hello my question is it possible to download for example a photo directly when I open my web page using only php? What I want is that when I open my page with the photo it is downloaded so I can view it on my computer. Try with:
<?php header("Location: http://paginaweb/seccion1/foto.jpg"); ?>
Well when I open this page I will visualize my photo and it will be downloaded. But if I use the previous code, my page is not displayed. Is there a way to download a photo directly using php and my page to be displayed?
My page will be something simple like this:
<!DOCTYPE html>
<html>
<body>
<div class="bgimg">
<div class="topleft">
<p>Logo</p>
</div>
<div class="middle">
<h1>COMING SOON</h1>
<hr>
<p>35 days left</p>
</div>
<div class="bottomleft">
<p>Some text</p>
</div>
</div>
</body>
</html>