Re: Help with Class

From: Date: Thu, 08 Sep 2005 22:34:23 +0000
Subject: Re: Help with Class
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-222054@lists.php.net to get a copy of this message
Ian Barnes wrote:
                                   require_once (
$fetchd['path'].'sdk/ipbsdk_class.inc.php' );
What is the above line doing? It looks like you are trying to redeclare the ipbsdk class each time around the loop which is illegal in php. You can't do : class ipbsdk { ... } and then (in the same request) class ipbsdk { .... } because the names will clash. This should cause a "Fatal error: Cannot redeclare class ipbsdk ..." message though. Are you seeing any errors? - Ryan

« previous php.general (#222054) next »