Re: Finding the location of an included script

From: Date: Thu, 09 Dec 2004 18:02:54 +0000
Subject: Re: Finding the location of an included script
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-203840@lists.php.net to get a copy of this message
On Thursday 09 December 2004 22:46, 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" ? echo __FILE__; -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* I have never let my schooling interfere with my education. -- Mark Twain */

« previous php.general (#203840) next »