RE: [PHP] function re-defined | WorkAround? [and some more Q's]
| From: | Ford, Mike [LSS] | Date: | Thu, 05 Jun 2003 11:59:07 +0000 |
| Subject: | RE: [PHP] function re-defined | WorkAround? [and some more Q's] | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-150330@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: esctoday.com | wouter van vliet [mailto:wouter@esctoday.com]
> Sent: 04 June 2003 16:11
>
> 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..
include_once() / 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?
Yes.
>
> 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 ??
Not that I can think of, no.
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211