Way for script to discover it's path?
| From: | Ken Tozier | Date: | Sun, 18 Sep 2005 21:58:44 +0000 |
| Subject: | Way for script to discover it's path? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-222608@lists.php.net to get a copy of this message | ||
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()'
Thanks
Ken