Thanks!
I will use require_once then.
And the correct syntax is require_once("extensions/blabla.php"); ?
-----Original Message-----
From: mediawiki-l-bounces(a)Wikimedia.org
[mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Boris Edgarson
Sent: 8 juin, 2006 16:27
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Enabling an extension
All of the methods mentioned are valid PHP statements and do more or
less the same (all will work), but with a few notable differences:
- include: Past the code here, continue without error if the file is not
found.
- require: Past the code here, raise an error if the file is not found.
- require_once: Only past the code here once and give an error if the
file is not found. If the file is included/required further down in the
code that statement is ignored.
I advise you to use the require_once statement, mainly because the
extension might contain functions and/or classes that will give an error
if defined twice.
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l