Path to files

Status
Not open for further replies.

estado3

New Member
Messages
16
Reaction score
0
Points
0
Can someone confirm the path to files, say I uploaded a file to my directory, not the www folder just the first directory the path says public_html

and the folder is home/MYUSERNAME

I assume the path to the file seeing it's not in the www folder is:

/home/MYUSERNAME/file.txt ??
 

Micro

Retired staff <i> (11-12-2008)</I>
Messages
1,301
Reaction score
0
Points
36
Your files that are going to be viewable by people need to be in the public_html or www folder.

Your home directory path might be different than normal (A lot of people are in the /backup/home folder instead of /home, so put this in a php script and run it in a browser

Code:
<?php
echo __FILE__;
?>

That will give you an absolute path to your script, so if you put it in www, you migth see

/home/username/public_html/script.php
 
Last edited:

Cynical

Active Member
Messages
3,492
Reaction score
0
Points
36
Just to clarify, the WWW and public_html folders are mirrors of each other, so if you upload a file to one, it can be found in the other as well.
 
Status
Not open for further replies.
Top