HOW TO prevent: my browser tries to download php file

Talk and info about common issues and learn how to do almost anything with ApPHP AdminPanel

Moderators: ne_moj, zewa, vadimako, ne_moj, zewa, vadimako

administrator
Site Admin
Site Admin
Posts: 5987
Joined: Jan 7th, '09, 23:18
Contact:

HOW TO prevent: my browser tries to download php file

Postby administrator » Aug 14th, '09, 09:56

Sometimes it happens when you work on localhost (but not only).
Please perform next step to prevent this issue:

1. Check if your scripts placed in a right directory (http or www).
2. Check settings of your server, to check if your server may recognize this file as .php file.
3. Check the code of your .htaccess file.
Try to run your application without this file: remove it, clear your browser's cache, and reboot your PC.
4. check you use <?php and not <?
(or simply go php.ini file look short_open_tag and remove ; if any and make it 'on' short_open_tag on)

More info could be found here: http://www.webmasterworld.com/apache/3418477.htm

Return to “ApPHP AdminPanel {HOW TO}”