I am installing a script for someone and their hosting live support takes 10 minutes to not answer my question on what the Base path (ex /home/username/www) is for the account. Is there any way to figure this out without getting the info from the host? Kind of in a rush here
Base path question
Collapse
X
-
Yes,Originally posted by raulphI am installing a script for someone and their hosting live support takes 10 minutes to not answer my question on what the Base path (ex /home/username/www) is for the account. Is there any way to figure this out without getting the info from the host? Kind of in a rush here
If you can SSH or telnet into the machine just type pwd and that will give you the full path..
If you can't get in, You'll have to wait for support to help -
If it's a php script, $_SERVER[DOCUMENT_ROOT]; will work too.Comment
-
That would be phpinfo.php
Just make a new document and put inThen upload it where the script is.. Open the file in your browser, and look for _SERVER["SCRIPT_FILENAME"] which will be under "Php Variables" and that will be your full base path...Code:<? phpinfo(); ?>
Comment

Comment