reading a text file using php programming

Category: Phpbb

2012-08-25 10:43 pm EST

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



10,075 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?
Write New!
Do you want to publish a tutorial to our support center?

News / Announcements

SSL Certficate Warnings
Updated 2014-04-14 11:34 am EST
Hits: 1966
Heartbleed 0-day OpenSSL security bug
Updated 2014-04-14 04:43 pm EST
Hits: 5208

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

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!