Jump to content

php file not loading


Jemoh

Recommended Posts

I know this sounds like a silly question but how do you open a file with a .php extension coz everytime I try to, the browser downloads instead of opening it. Anyone plz help ?

  • Like 2
Link to comment
Share on other sites

Sorry, I have done it + am using a file that is on my computer & my computer has php already installed. Anymore suggestions ?

Link to comment
Share on other sites

If you were opening the file with an HTTP URL in the browser, and your server has PHP installed and configured correctly, then it would work. Having PHP installed isn't enough, you need a web server like IIS or Apache, and it needs to be configured to use PHP. Double-clicking on a file to open it doesn't work, that's not an HTTP URL. What server are you using? How did you install PHP?

Link to comment
Share on other sites

Sorry, I have done it + am using a file that is on my computer & my computer has php already installed. Anymore suggestions ?
depending on the php software your using, place it in the www file, if there is one, suppose to have one, what php softy your using btw?
  • Like 1
Link to comment
Share on other sites

I Am using linux mint so I installed php 5

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...