Re: Finding the location of an included script

From: Date: Thu, 09 Dec 2004 16:53:40 +0000
Subject: Re: Finding the location of an included script
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-203831@lists.php.net to get a copy of this message
Gadi Cohen wrote:
So if I have: include("/path/to/backend.php"); Is there a way from inside of backend.php to return "/path/to" ?
Check out the filesystem functions in the PHP manual. You're probably particularly interested in pathinfo() http://www.php.net/pathinfo -- Ben Ramsey Zend Certified Engineer http://benramsey.com --------------------------------------------------- Atlanta PHP - http://www.atlphp.org/ The Southeast's premier PHP community. ---------------------------------------------------

« previous php.general (#203831) next »