> Fatal error: Cannot redeclare class dmsql in It looks like you are after include_once
http://www.php.net/manual/en/function.include-once.php Todd ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 29, 2002 2:48 PM Subject: [PHP] Class problem - Fatal error: > Hello I get this error: > > Fatal error: Cannot redeclare class dmsql in > /usr/local/apache/htdocs/dm/inc/sql.inc.php on line 4 > > It happens when a user presses the back button, otherwise when the page > is first loaded it works fine. > > Here's the file called with web browser > > include('class_dmsql.inc.php'); > include('class_b.inc.php'); > > $r = new class_b > > Please note that class_b extends class dmsql, > > Can anyone help me ? > > Thanks > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php