Hack:   Programming the Google Web API with PHP
Subject:   Cannot redeclare class soapclient
Date:   2005-03-01 21:39:36
From:   francish
If you get following error with PHP5 and NuSoap:


"Cannot redeclare class soapclient"


Try this:


There seems to be a clash of PHP5 build-in soap class and the nusoap class. Simply rename all occurences of "soapclient" in all 10 nusoap files into "soapclientw" (or whatever instead of "w") and for me it worked.


This is a workaround/ hack. Backup your files before trying it.