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.
---------------------------------------------------

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



Reply via email to