Re: Class problem - Fatal error:
| From: | Todd Pasley | Date: | Thu, 29 Aug 2002 05:07:20 +0000 |
| Subject: | Re: Class problem - Fatal error: | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-114465@lists.php.net to get a copy of this message | ||
> 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: <irek@cybrnet.net>
To: <php-general@lists.php.net>
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
>