> 
> get_include_snippet_once
> 
> Any hope of a function like this?
> 
> Like the include_once function this would
> help avoid those nasty
> "Cannot redefine function" errors when something
> gets accidently included twice or more.
> 


<? if (!function_exists("my_function")) {
      mgd_include_snippet("my_functions/func");
} ?>

I don't know if it's really possible to check all functions in a snippet
and only execute the parts of the code that have not yet defined
functions, on snippet level (internal bookkeeping if certain snippet has
been executed or not) it might work but doesn't help you if you define
the same function in two snippets or something similar.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to