Jump to content

Make php file exist off root directory


mboehler3
 Share

Recommended Posts

Hi, I have a simple PHP question. I usually write code in HTML or ASP. In HTML when I want to access my file off of the root directory, I will name it "index.html" and can just type in the folder name to access the page. In ASP I can do the same thing with "default.asp". What can I name it in PHP to do the same?

Link to comment
Share on other sites

It is generaly index.php but it could be anything depending what file names server is set to parse

Edited by birbal
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
 Share

×
×
  • Create New...