Re: nested includes()...

From: Date: Tue, 09 Oct 2001 17:36:38 +0000
Subject: Re: nested includes()...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-70523@lists.php.net to get a copy of this message
<? chdir( ".." ); include( "a.inc" ); chdir( "dir" ); ?> This way all included files have proper current working directory and are able to include anything else (not depending on above 'dir' directory structure, so it's movable structure). The only problem is that 'z.php' has to be aware that it's in 'dir' directory.
yeah... and it's not generic... I can't go creating dirs and hope this works every time... I want a solution like this...

« previous php.general (#70523) next »