Jump to content

php and text file


hisoka

Recommended Posts

I have a web server Apache installed in my computer with PHP of course and I want the text file file whose name is zone.txt to be opened in my URL like this :

 

when I put this URL in my browser

 

http://localhost/zone.txt

 

my browser displays the zone.txt for me . I do not know how to do it

 

any article to read first or any suggestion :)

Link to comment
Share on other sites

I don't really understand what you're asking for.

 

If the zone.txt file is located in the document root directory then it will be displayed under localhost. The directory might be named www, or htdocs, or public_html or something else depending on how your server is set up.

  • Like 1
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...