Posted by Rik Wasmus on 09/08/07 13:02
On Sat, 08 Sep 2007 08:33:23 +0200, <srilathaapi@gmail.com> wrote:
> Hi All,
> I am getting the error cannot redeclare the class some xxx in
> file xxx.php.
> bcz i m including xxx.php in 3 diffrent functions in the same file to
> invoke the 3 differnet functions in the xxx.php from 3 different
> functions.so can u give me the solution.
Function- and classdeclarations are automatically global, so if you need
to use a function or a class reincluding it's file is not necessary. Files
with (a) class(es)/function(s) should be require_once()'ed.
--
Rik Wasmus
[Back to original message]
|