Odys Posted March 13, 2007 Share Posted March 13, 2007 Hi everyone! I'm using NuSOAP, and it has been working fine until today when I got the following error! Fatal error: Cannot redeclare class soapclient in /export/web/homepages.cs/jonathan.olliff-lee/WebServices/MessagingWebService/nusoap.php on line 7240 I have touched nusoap.php so its as is when you download it! I have no idea whats going on and was just wondering whether anyone has had this problem before or know of a solution! Many thanks! Link to comment https://forums.phpfreaks.com/topic/42493-fatal-error-cannot-redeclare-class-soapclient-help-is-much-needed/ Share on other sites More sharing options...
monk.e.boy Posted March 13, 2007 Share Posted March 13, 2007 are you including the file twice? monk.e.boy Link to comment https://forums.phpfreaks.com/topic/42493-fatal-error-cannot-redeclare-class-soapclient-help-is-much-needed/#findComment-206233 Share on other sites More sharing options...
gargoylemusic Posted March 13, 2007 Share Posted March 13, 2007 When you include that file, try using include_once() instead of just include() Link to comment https://forums.phpfreaks.com/topic/42493-fatal-error-cannot-redeclare-class-soapclient-help-is-much-needed/#findComment-206311 Share on other sites More sharing options...
Lumio Posted March 13, 2007 Share Posted March 13, 2007 require_once is better Link to comment https://forums.phpfreaks.com/topic/42493-fatal-error-cannot-redeclare-class-soapclient-help-is-much-needed/#findComment-206314 Share on other sites More sharing options...
monk.e.boy Posted March 13, 2007 Share Posted March 13, 2007 require_once is better why? monk.e.boy Link to comment https://forums.phpfreaks.com/topic/42493-fatal-error-cannot-redeclare-class-soapclient-help-is-much-needed/#findComment-206326 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.