InMotion Hosting Support Center

reading a text file using php programming

Category: Phpbb

2012-08-25 10:43 pm EST

Hits: 1,332
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.


Merlin VIlhauer

You must login before you can ask a follow up question.

You must login before you can submit an answer.



43,761 Points
2012-08-28 2:53 pm EST
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

You must login before you can post a comment about this answer.

Like this Question?

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!