Mercurial > hg > ywww
comparison php/read/getBookDetails.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 | 385ddd7c4b55 ae1459564f66 |
comparison
equal
deleted
inserted
replaced
9:232deb0b066a | 10:5aa24c984a3b |
---|---|
220 // principled solution in place | 220 // principled solution in place |
221 } | 221 } |
222 else { | 222 else { |
223 file_put_contents('/var/ywww/debug/phpDebug',"parms bd: ". | 223 file_put_contents('/var/ywww/debug/phpDebug',"parms bd: ". |
224 print_r($parameters,TRUE)."\n",FILE_APPEND); | 224 print_r($parameters,TRUE)."\n",FILE_APPEND); |
225 if ($code=="") { | |
226 file_put_contents('/var/ywww/debug/phpDebug',"error elt:\n$out\n",FILE_APPEND); | |
227 } | |
225 } | 228 } |
226 } | 229 } |
227 else { | 230 else { |
228 $xml = new SimpleXMLElement($out); | 231 $xml = new SimpleXMLElement($out); |
229 //use this xml to pull out the necessary information and save it | 232 //use this xml to pull out the necessary information and save it |