> I'm working on quite a large website with a lot of php pages.. And a lot of > includable functions (modules).. Sometimes one of those modules gets > included twice accidently and then it generates an error .. of course.. This > made me wonder of there's any way to prevent the function from being defined > again.. I've looked on the 'get_included_files' and used it to check if the > file was already included.. For one, this had to search through the entire > array and second it does not seem to return full file paths to the file, but > only the filename itself.. Not really what I want either, since there may be > various files with the same filename in various dirs..
How about using include_once() or require_once()? > Or what I sometimes want to do is overrule a function .. the manual just > told me PHP does not support this, is that really true? Yeah... > And then for my last question at this moment... things like "print" and > "require" are considered langauge construct and therefore don't need the > parentheses .. Can I make stuff like that myself too, so I can make > something like a function which does not use parentheses ?? No. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php