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.