Jump to content

php not working now.... IE wants to DL .php files.


just-j

Recommended Posts

my php scripts just stopped working..  i use wamp 5 to have a local server so i can script and test without having to be connected to the internet..  well yesterday i was writing some code and went to test it and IE asked me if i wanted to open or save the .php file...  any suggestions on how to fix this?  i even tried <?php phpinfo(); ?> and still got the download box.  i didnt change any settings in wamp,  it just decided to quit working on its own.  so any help would be nice..  maby uninstall and reinstall wamp 5?  i dont know.. do you?
Link to comment
Share on other sites


this problem is probably because Apache isn't running.
try starting Apache, however you do it in WAMP, and this problem should be fixed.

if you're a regular PHP developer, i recommend you add Apache as a service so that it begins everytime your OS boots.
Link to comment
Share on other sites

apache is running and when i test port 80 it says apache and php is using this port.  but it still wants to download the .php file...  should i delete wamp5 all together and just get php, mysql, and apache as the stand alone installations instead of this all in one wamp program?
Link to comment
Share on other sites

How are you invoking your scripts? Via a url like http://localhost/script.html or are you double clicking the file? If you're double clicking, that's you're problem. Double clicking does not send the file through the Apache webserver, but just brings up a browser which tries to figure out what you want and most browsers do not know  what do do with PHP files.

Ken
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.