Re: [PHP] application level variable file

[email protected] (David OBrien)
Newsgroups php.general
Message-ID <CAF=yD_1wV3-H273PdNd9w4ir2FXpdyWyxuPna8+saBiiF03EVg@mail.gmail.com>
On Fri, Mar 22, 2013 at 10:26 AM, Stuart Dallas <[email protected]> wrote:

> On 22 Mar 2013, at 14:22, <[email protected]> wrote:
>
> > I am very new to the PHP application and would like to create a new
> project.
> > I would like to have a file to save my application level variable and
> > functions.
> >
> > I would like to know does PHP have any default file name and file path
> for
> > this file like Web.config file for ASP.Net and Application.cfm for
> > ColdFusion?
>
> You can in the php.ini file use this

http://php.net/manual/en/ini.core.php#ini.auto-prepend-file

*auto_prepend_file*
string<http://www.php.net/manual/en/language.types.string.php>

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
require<http://www.php.net/manual/en/function.require.php> function,
so include_path <http://www.php.net/manual/en/ini.core.php#ini.include-path> is
used.
The special value *none* disables auto-prepending.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.