Re: What does this error mean?
| From: | Dallas Goldswain | Date: | Tue, 24 Jun 2003 15:00:47 +0000 |
| Subject: | Re: What does this error mean? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-20532@lists.php.net to get a copy of this message | ||
"Rodel D. Bautista" <rodel.bautista@digitel.ph> wrote in message
news:C3C41BB033D7394289F7213C3829CED003D5E3EE@dgtl_pdc.ditsi.com.ph...
> Hi to all,
> I'm trying to install the "simple document management system" from
freshmeat
> and I'm getting the following error when I tried running it:
> Fatal error: Cannot redeclare class user in
> c:\apache\htdocs\sdms\lib\classes.inc on line 3
> What does this error mean? How can I eliminate this error? I have observed
> this also when I tried installing another document repository system from
> freshmeat.
>
It could also be that you are including the page more than once in the same
logical block,
thus its trying to re-declare the class.
try changing include to include_once or remove the last include to the file.
eg.
<?php
include "baselibs.inc.php";
$var = funcfrombaselib();
//some code here
include "baselibs.inc.php"; <----- remove this line
$somevar = anotherfuncfrombaselibs();
//some code
?>
hope this helps
--
Regards
Dallas Goldswain
www.development.co.za
The hottest development forum in SA!
Sign up now!
Hundreds of Topics are being Discussed