Re: how include works?
| From: | Richard Lynch | Date: | Tue, 30 May 2006 04:10:30 +0000 |
| Subject: | Re: how include works? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-237067@lists.php.net to get a copy of this message | ||
On Tue, May 23, 2006 6:19 pm, Mindaugas L wrote:
> can anybody explain how require works, and what's the difference
> between
> _once and regular? What's going on when php file is processed? In
> manual is
> written just, that it's readed once if include_once. What does to mean
> "readed"? Thank You
require and include both basically work EXACTLY as if you
copied/pasted the file into your source code, except that you are
"out" of PHP mode in the included file.
Adding _once means that PHP will ignore the statement if you have
already included or required that file anywhere else in your script
previously.
--
Like Music?
http://l-i-e.com/artists.htm