Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 01-25-2005, 03:34 PM   #1
mkx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Toronto
Posts: 4,001
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
mkx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-25-2005, 03:36 PM   #2
Methodcash Rick
Confirmed User
 
Join Date: Jul 2004
Location: Las Vegas
Posts: 1,720
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
Methodcash Rick is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-25-2005, 03:39 PM   #3
StuartD
Sofa King Band
 
StuartD's Avatar
 
Join Date: Jul 2002
Location: Outside the box
Posts: 29,903
If it's a php script, $_SERVER[DOCUMENT_ROOT]; will work too.
StuartD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-25-2005, 03:39 PM   #4
mkx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Toronto
Posts: 4,001
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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-25-2005, 03:41 PM   #5
mkx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Toronto
Posts: 4,001
What's that php script that pulls up all the server/php information that you can upload? Does that tell you the root path?
mkx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-25-2005, 03:51 PM   #6
Methodcash Rick
Confirmed User
 
Join Date: Jul 2004
Location: Las Vegas
Posts: 1,720
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...
Methodcash Rick is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-25-2005, 04:02 PM   #7
mkx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Toronto
Posts: 4,001
Thanks rick. My server provider serverprovider told me to use servercheck.cgi and it did the trick as well. Thanks again!
mkx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.