Skip to content

Instantly share code, notes, and snippets.

View shawe's full-sized avatar

Francesc Pineda Segarra shawe

View GitHub Profile
@bftanase
bftanase / secure_link.php
Last active May 23, 2024 13:47
generate URL for nginx secure_link
@benlk
benlk / notes.md
Last active May 22, 2019 13:03
Setting up phpdoc-md for phpdoc -> GitHub Wikis
@pkmishra
pkmishra / MTOMSoapClient.php
Created March 29, 2012 19:57
PHP SOAP client to handle mtom message encoding
/**
* This client extends the ususal SoapClient to handle mtom encoding. Due
* to mtom encoding soap body has test apart from valid xml. This extension
* remove the text and just keeps the response xml.
*/
class MTOMSoapClient extends SoapClient {
public function __doRequest($request, $location, $action, $version, $one_way = 0) {
$response = parent::__doRequest($request, $location, $action, $version, $one_way);
//if resposnse content type is mtom strip away everything but the xml.