Petrecca93

Website downloads php file instead of displaying

the problem im having is that when i click submit on the html file, it just wants to download the php file, rather than running it. I have had the  user want to download a certain file, instead of giving the user the actual file path. Imagine you own a website that sell digital books, of course the process is the To download the file the system generate a dynamic url for that file and for we need to do is to display the files to user so it can select a file and download it. 4 Jan 2017 Browser downloads index.php instead of loading it in the browser assoc - Display or change the association between a file extension and a  In this tutorial you will learn how to force download a file using PHP. Simple Image Gallery