AardvarkBusiness.net - Business Search Engine AardvarkBusiness.net - Business Search Engine



 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

     

Finding the full path

 
 
Post new topic   Reply to topic    AardvarkBusiness.net Forum Index -> Domains & Hosting Forum
View previous topic :: View next topic  
Author Message
adigaskell
President
President


Joined: 01 Jul 2004
Posts: 5428

7099 ants

PostPosted: Sat Dec 31, 2005 2:44 pm    Post subject: Finding the full path Reply with quote

I need to find out the full path for a cron job but am not having much luck. Is there anyway to find out the full path to a file?
_________________
My social media blog
Back to top
View user's profile Send private message Visit poster's website
adigaskell
President
President


Joined: 01 Jul 2004
Posts: 5428

7099 ants

PostPosted: Sat Dec 31, 2005 2:44 pm    Post subject: Reply with quote

Oh, it's a 1and1 server if that helps.
_________________
My social media blog
Back to top
View user's profile Send private message Visit poster's website
trev
President
President


Joined: 15 Oct 2002
Posts: 3011
Location: NW England, UK
4037 ants

PostPosted: Tue Jan 03, 2006 3:41 pm    Post subject: Reply with quote

In PHP you could do:

Code:
echo __FILE__


...and put that into the directory where you want to know the path.

CRON jobs do seem a little odd as for example when we run them from Cpanel they appear to run with the same relative paths as on a web site (eg: ../this/path/here) but if run from root they need the full thing, eg: /home/user/public_html/ etc.

Trev
_________________
Mad Theories - Ambleside - Coniston - Grange
Back to top
View user's profile Send private message Visit poster's website
adigaskell
President
President


Joined: 01 Jul 2004
Posts: 5428

7099 ants

PostPosted: Tue Jan 03, 2006 3:59 pm    Post subject: Reply with quote

Thanks Trev.
_________________
My social media blog
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AardvarkBusiness.net Forum Index -> Domains & Hosting Forum All times are GMT + 1 Hour
Page 1 of 1

 
Google
 
Business Forum Sport Forum Travel Forum


Powered by php B B © 2001, 2002 php B B Group

AardvarkBusiness.net Business Search Engine & Directory