Re: application level variable file
| From: | David OBrien | Date: | Fri, 22 Mar 2013 14:35:29 +0000 |
| Subject: | Re: application level variable file | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-320668@lists.php.net to get a copy of this message | ||
On Fri, Mar 22, 2013 at 10:26 AM, Stuart Dallas <stuart@3ft9.com> wrote:
> On 22 Mar 2013, at 14:22, <inungh@gmail.com> 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.