note 60004 deleted from soapclient.soapclient by crell

From: Date: Mon, 04 Apr 2022 16:48:59 +0000
Subject: note 60004 deleted from soapclient.soapclient by crell
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-218062@lists.php.net to get a copy of this message
Note Submitter: php at sowen dot de ---- If you're using CLI and there are multiple IP addresses available for outgoing SOAP-requests, try this "secret" to set outgoing IP: e.g. for local IP 10.1.4.71: $opts = array('socket' => array('bindto' => '10.1.4.71:0')); $context = stream_context_create($opts); $client = new SoapClient(null, array('location'=>'http://...','uri' => '...','stream_context' => $context)); You can also set other options for the stream context, please refer to this page: Appendix M: http://www.php.net/manual/en/wrappers.php Bye, Nils Sowen

« previous php.notes (#218062) next »