If you have no access to php.ini file but you can modify .htaccess file on your server (in root of your public_hml folder - your Joomla! site), try to add the following code there (on some servers this option is disabled, so you need to ask your webhosting operator): # Displaying PHP errors php_flag display_errors on php_value error_reporting 6143 Solved: Chrome downloading file instead of displaying page. by Finn Espen Gundersen on June 17th, 2013. A lot of developers are experiencing the same problem: while all other browsers display your latest web creation perfectly, Chrome just downloads the script source file – yes, source.
Hi, i used your code to create a download.php file, in order to protect my files from !$_SESSION users. I would like to protect also my folder from url access, if i use 700 as chmod value, the page will not return the download file, but it will stay blank (the fopen fail)..
Share buttons for WordPress including the AddToAny sharing button, Facebook, Twitter, WhatsApp, Pinterest, Reddit, many more, and follow icons too. This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. liveSite documentation to help you build and manage your liveSite website. EASY PHP Websites WITH THE ZEND Frameworkmaster the popular Zend Framework by following along with the creation of a s Avoids direct files download, hides real file paths, downloads log (including visitor IP, date, and filename). Customizable set of allowed file types for download. PHP Header Force Download Of Files. Tutorial on using PHP Headers to force a file to download instead of displaying inside the browser. Apache is downloading php files instead of displaying them. Ask Question If you are prompted to download a .php file instead of executing it, files which run and display perfectly on the actual site would not display, or would only display html on the local machine. PHP was not parsed. The phpinfo() command worked, so I knew php was