Hi Frank,
The reason I asked is that some files I'm modifying have "include_once" used in 
every instance.
There doesn't seem to be any reason why they are using this, as there's no 
chance of being included twice.

It seems that they've used "include_once" (just in case), which is misleading.
I've also seen this in free examples I've downloaded, where "include" on it's 
own is never used.
It's just a trend that I have noticed.


----- Original Message ----- 
From: "Mike Franks" <[EMAIL PROTECTED]>
To: <php-list@yahoogroups.com>
Sent: Tuesday, August 09, 2005 7:01 PM
Subject: Re: [php-list] Include files

> Thanks, Bob. I'm surprised (and pleased!) to learn it works this way.
> 
> Re: include_once() vs. include() - they truly serve two different
> purposes.
> 
> Use include() when you want to include the same file multiple times, at
> different parts of your page.
> 
> Use include_once() when you need to prevent a file from inadvertantly
> being included multiple times.
> 
> Mike




------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12hnral6g/M=362335.6886445.7839731.1510227/D=groups/S=1705005703:TM/Y=YAHOO/EXP=1123641390/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOO&cmpgn=GRP&RTP=http://groups.yahoo.com/";>In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!</a>.</font>
--------------------------------------------------------------------~-> 

Community email addresses:
  Post message: php-list@yahoogroups.com
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to