Re: dynamic include

From: Date: Mon, 12 Jun 2000 14:09:52 +0000
Subject: Re: dynamic include
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-1615@lists.php.net to get a copy of this message
On Sun, Jun 11, 2000 at 02:43:37AM -0500, Matt McClanahan wrote: > On Sat, 10 Jun 2000, sarahana wrote: > > > Is it true that you can't include a file with a query string? for > > example, if the file is file.php?type=task, then I want the file.php to > > include action.php?type=task. I've found that if you include the full url in the path, it does work. Apparently include() can understand http requests... (use it like a remote include) I think that 'virtual()' may also work like that. > Second, whenever you > include a file, all variables, functions, objects, etc. are automatically > inherited by the included file. Is there any friggin way to include a file without having it inherit the path of the included file? I would love to be able to nest includes without worrying about hassling with something like $include_path variables. Please, does anyone know of something that will do this? Please Please Please Ryan

« previous php.general (#1615) next »