Mercurial > hg > ywww
comparison xml/getAmazonInfo.php @ 10:5aa24c984a3b
if no code show entire response
author | Henry S. Thompson <ht@markup.co.uk> |
---|---|
date | Sat, 18 Feb 2017 12:28:36 +0000 |
parents | 232deb0b066a |
children | c9ebf871114b |
comparison
equal
deleted
inserted
replaced
9:232deb0b066a | 10:5aa24c984a3b |
---|---|
121 // principled solution in place | 121 // principled solution in place |
122 } | 122 } |
123 else { | 123 else { |
124 file_put_contents('/var/ywww/debug/phpDebug',"parms: $go\n". | 124 file_put_contents('/var/ywww/debug/phpDebug',"parms: $go\n". |
125 print_r($parameters,TRUE)."\n",FILE_APPEND); | 125 print_r($parameters,TRUE)."\n",FILE_APPEND); |
126 if ($code=="") { | |
127 file_put_contents('/var/ywww/debug/phpDebug',"error elt:\n$out\n",FILE_APPEND); | |
128 } | |
126 } | 129 } |
127 } | 130 } |
128 else { | 131 else { |
129 $xml = new SimpleXMLElement($output); | 132 $xml = new SimpleXMLElement($output); |
130 set_error_handler(function () { | 133 set_error_handler(function () { |