Jump to content

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


unclemid

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.
Link to comment
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..
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.