note 102056 deleted from function.require-once by danbrown

From: Date: Tue, 25 Jan 2011 13:59:41 +0000
Subject: note 102056 deleted from function.require-once by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-176297@lists.php.net to get a copy of this message
Note Submitter: jeffmixpute ---- Simple use of require once. Trying to parse without will lead to an error. <?php require once "SOAP/Client.php"; $ws = new SOAP_WSDL("Path/to/service.php?wsdl"); $proxy = $ws->getProxy(); $startCity = "begin"; $endCity = "target"; $answer = $proxy->findRoute($startCity, $endCity); if(get_class($answer) == "SOAP_Fault"){ echo "Error ! "; }else{ echo $answer["route"]; } ?>

« previous php.notes (#176297) next »