You are here: Re: Why php ? « All PHP « IT news, forums, messages
Re: Why php ?

Posted by Markus Ernst on 06/30/06 13:08

Margaret Willmer schrieb:
>
> Could you tell me however, if there is an advantage in using
> "require_once" instead of "include".

Use require_once() or include_once() for including files with class or
function definitions, to avoid an error if the same file would be
included at some other place in your script.

Use require() or include() if you possibly want to include the same
piece of code more than once.

Use require() or require_once() to include code that is essential for
the functionality of the script (as failure of inclusion will cause the
script to exit with a fatal error).

Use include() or include_once() if you want the script to be continued
if the inclusion fails.

HTH
Markus

 

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

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