You are here: Re: Confused about scope of globals in included files « PHP Programming Language « IT news, forums, messages
Re: Confused about scope of globals in included files

Posted by Chung Leong on 02/23/06 20:43

You need to use the global keyword. When you do an include inside a
function, any global code will end up running inside the scope of that
function.

You might also want to use include_once(), so that you don't end up
with a fatal error (function already defined) when Create_Batch() is
called more than once.

 

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

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