reading a text file using php programming

Avatar
  • Answered
Need to know the full path name to read a text file on the website. Inmotion website.

currently using the following :

$file = /home/"username"/public_html/subdirectory/filename.


This does not seem to work.

thanks.

Merlin VIlhauer
Avatar
Scott
Hello Merlinore,

The path structure you are using is correct. Be sure that the program does not need only the relative path instead of the full path.

Best Regards,
Scott M