Re: prepend file to all scripts...

From: Date: Fri, 24 Oct 2003 20:07:08 +0000
Subject: Re: prepend file to all scripts...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-167490@lists.php.net to get a copy of this message
snip from: http://www.php.net/manual/en/configuration.directives.php auto_prepend_file string Specifies the name of a file that is automatically parsed before the main file. The file is included as if it was called with the include() function, so include_path is used. The special value none disables auto-prepending. auto_append_file string Specifies the name of a file that is automatically parsed after the main file. The file is included as if it was called with the include() function, so include_path is used. The special value none disables auto-appending. Note: If the script is terminated with exit(), auto-append will not occur. http://www.php.net/manual/en/configuration.directives.php On Friday 24 October 2003 15:00, Jonathan Villa wrote: > I thought I read that this was possible once, but I can't find > anything to substantiate/refute it... > > Is it possible to prepend a configuration file to my pages? > > For example, > > I have a app.config.inc file which contains an application specific > include path as well as includes the classes my application needs. > Currently this file is in my web root, but I would like to place it > outside of my web root but still include it in all of my pages... > > Is this possible?

« previous php.general (#167490) next »