Jump to content

Archived

This topic is now archived and is closed to further replies.

unclemid

Cant open php files....wants to download them!

Recommended Posts

Ok heres the problem. Ive got apache and php on my computer, all configured and everything and all of the sudden now when i try to open php files locally on my computer they wont display and they try to download. PLEASE HELP this is urgent and im at a real crunch for time. Thanks.

Share this post


Link to post
Share on other sites
are you testing locally as in [a href=\"http://127.0.0.1\" target=\"_blank\"]http://127.0.0.1[/a] or you mean C:\dir\dir\webroot\index.php ??? if your using c:\... then that's your problem because it's not parsing thru the webserver.. If you are using [a href=\"http://127.0.0.1\" target=\"_blank\"]http://127.0.0.1[/a] or simular witgh the http protocal then it's down to the MIME type of the .php extentiom

in your apache config file you need to make sure you have these lines..

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

also you need

AddModule mod_php4.c


make sure there are no #'s

If all of that is there then might be worth reinstalling to see why there is still a problem with it..

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.