I want my web service to return a whole bunch of data from my database... how can i do this?
<?php $wholebunch = "SELECT * FROM mybigtable ORDER BY RAND();"; foreach ($wholebunch as $web => $service) { echo $web . $service }
:o
what if I can only return one result? can i do it in some kind of XML format or dataset?
hmmm .... Make a backup dump of your DB. And save it for reading.
SOAP is something called Web Service. Looks like it has to do with XML. PHP has got web service support in module php_soap.dll PEAR :: Package :: SOAP http://pear.php.net/package/SOAP Another php soap is NuSoap. It is a bunch of PHP5 classes. http://www.scottnichol.com/nusoapintro.htm Using SOAP with PHP http://developer.apple.com/internet/webservices/soapphp.html
🙂
Store all the data into an array and [man]serialize/man it.