Re: application level variable file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 22, 2013 at 10:26 AM, Stuart Dallas <stuart@xxxxxxxx> wrote:

> On 22 Mar 2013, at 14:22, <inungh@xxxxxxxxx> 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.

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux