Re: include_path

From: Date: Sun, 16 Jul 2000 23:29:13 +0000
Subject: Re: include_path
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-6856@lists.php.net to get a copy of this message
You can also use relative paths. I have a site that I set up to use common headers and set it up like: if (file_exists(top.html)){ include(top.html) } else If (file_exists(../top.html)){ inc................ } else if (file_exists(../../top.html)){ You get the point. This way I can instantly change the header look based on where I place the include file in the relative path. Ed ""Paul Fontenot"" <paul@pitbull-racing.com> wrote in message news:NEBBLMOEHCBGMKFPBNNJMEFHCCAA.paul@pitbull-racing.com... > Is there something other than setting this in /usr/lib/php.ini to set > include_path? > > include_path = "/usr/local/somewhere"; > > -Paul > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#6856) next »