GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Base path question (https://gfy.com/showthread.php?t=422138)

mkx 01-25-2005 03:34 PM

Base path question
 
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

Methodcash Rick 01-25-2005 03:36 PM

Quote:

Originally Posted by raulph
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

Yes,

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

StuartD 01-25-2005 03:39 PM

If it's a php script, $_SERVER[DOCUMENT_ROOT]; will work too.

mkx 01-25-2005 03:39 PM

Thanks for the advise but telnet takes 3 hours to activate with this host. I will just wait another 10 min for the guy to reply on live support and hopefully it will be with an answer this time

mkx 01-25-2005 03:41 PM

What's that php script that pulls up all the server/php information that you can upload? Does that tell you the root path?

Methodcash Rick 01-25-2005 03:51 PM

That would be phpinfo.php

Just make a new document and put in
Code:

<? phpinfo(); ?>
Then 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...

mkx 01-25-2005 04:02 PM

Thanks rick. My server provider serverprovider told me to use servercheck.cgi and it did the trick as well. Thanks again!


All times are GMT -7. The time now is 03:51 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123