You are here: Re: Programming Tips and Tricks « PHP Programming Language « IT news, forums, messages
Re: Programming Tips and Tricks

Posted by Don Freeman on 10/27/82 11:22

"SOR" <webmaster@sparesorrepair.co.uk.INVALID> wrote in message
news:MPG.1d50a1e554332bd9989dc5@no-cancel.newsreader.com...
> <comp.lang.php , Andy Hassall , andy@andyh.co.uk>
> <cp2de1dt8jabebsp78epheaufmkf4rk83g@4ax.com>
> <Tue, 26 Jul 2005 20:13:24 +0100>
>
>> >> Usually these things are pretty simple, like using include_once
>> >> instead
>> >> of include for certain files,
>> >
>> >I've seen both used but dont know the difference - what is the
>> >difference ? .
>>
>> PHP has a manual that answers questions like this.
>>
>> http://php.net/include
>> http://php.net/include_once
>>
> Obviously asked the question on the wrong newsgroup .

Especially when the description in the manual is confusing:
----
"include_once() should be used in cases where the same file might be
included and evaluated more than once during a particular execution of a
script, and you want to be sure that it is included exactly once to avoid
problems with function redefinitions, variable value reassignments, etc.":
----
So now I get to ask an extremely dumb question...

Why would you include the same file multiple times in the same file anyway?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация