Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading a file from a different directory

Status
Not open for further replies.
But "/users/logs/log1.txt" doesn't exist. Either remove the leading slash or reference the full path. The path also needs to be based on the filesystem, not the webroot. So the relative path would be better.
 
Check your phpinfo() output and find the WEBROOT. That portion has to be prepended to the /users/logs/log1.txt
You need an explicit full file path to access the file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top