"Rodel D. Bautista" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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 -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php