Re: include
| From: | Charles Killian | Date: | Tue, 25 Jul 2000 16:37:25 +0000 |
| Subject: | Re: include | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-8083@lists.php.net to get a copy of this message | ||
It's under control structures in the manual.
Or it is in the latest snap shot of the manual. Anyway here's what is says:
include_once()
TODO The include_once() statement replaces itself with the specified file,
much like the C preprocessor's #include works.
Seel also: require(), include(), require_once(), get_required_files(),
get_included_files()
Also:
get_included_files
(PHP4 >= 4.0RC1)
get_included_files -- Returns an array with the names of the files
include_once()'d in a script
Description
array get_included_files (void)
This function returns an associtative array of the names of all the files
that have been loaded into a script using include_once(). The indexes of the
array are the file names as used in the include_once() without the ".php"
extension.
Note: As of PHP 4.0.1pl2 this function assumes that the include_once files
end in the extension ".php", other extensions do not work.
See also: require_once(), include_once(), get_required_files()
Also the latest manual snapshot:
http://snaps.php.net/manual/
Charles
----- Original Message -----
From: "Christian Ruppnig" <ruppnig.consulting@aon.at>
To: "'Charles Killian'" <Charles@AlcatrazDesignGroup.com>
Sent: Tuesday, July 25, 2000 9:23 AM
Subject: AW: [PHP] include
> Hi Charles,
>
> thank you for the very quick reply. Can you give me the URL where the
> documentation for include_once()is ?
>
> Thank you very much, Christian
>
> -----Ursprüngliche Nachricht-----
> Von: Charles Killian [mailto:Charles@AlcatrazDesignGroup.com]
> Gesendet: Dienstag, 25. Juli 2000 18:14
> An: Christian Ruppnig; php-general@lists.php.net
> Betreff: Re: [PHP] include
>
>
> You need to take care of the include() management on your own or use the
> PHP4 function:
>
> include_once()
>
> Charles
>
>
> ----- Original Message -----
> From: "Christian Ruppnig" <ruppnig.consulting@aon.at>
> To: <php-general@lists.php.net>
> Sent: Tuesday, July 25, 2000 9:01 AM
> Subject: [PHP] include
>
>
> > Hello,
> >
> > because of a very modular program structure it could be in our php -
> > programs that we would include the same file twice or even more times.
Do
> we
> > have to take care on our own if a file is already included or is this
> > management already done by php ?
> >
> > Thanx, Christian Ruppnig
> >
> > --
> > 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
> >
> >
>
>