Re: Way for script to discover it's path?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2005-09-18, Ken Tozier <kentozier@xxxxxxxxxxx> wrote:
> I'm working on an auto-include mechanism for some complex scripts and  
> rather than have all the paths to the various components hard coded,  
> I'd like to have the script walk up the hierarchy looking for it's  
> specified includes. Is it possible to do this? I looked at the  
> various file related php functions but didn't see anything resembling  
> 'my_path()'

You might also want to check out the __FILE__ constant..

http://be.php.net/manual/en/language.constants.predefined.php 

-- 
Met vriendelijke groeten,
Tim Van Wassenhove <http://timvw.madoka.be>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux