Mercurial > hg > ywww
changeset 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 |
files | php/read/getBookDetails.php xml/getAmazonInfo.php |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/php/read/getBookDetails.php Sat Feb 18 11:38:36 2017 +0000 +++ b/php/read/getBookDetails.php Sat Feb 18 12:28:36 2017 +0000 @@ -222,6 +222,9 @@ else { file_put_contents('/var/ywww/debug/phpDebug',"parms bd: ". print_r($parameters,TRUE)."\n",FILE_APPEND); + if ($code=="") { + file_put_contents('/var/ywww/debug/phpDebug',"error elt:\n$out\n",FILE_APPEND); + } } } else {
--- a/xml/getAmazonInfo.php Sat Feb 18 11:38:36 2017 +0000 +++ b/xml/getAmazonInfo.php Sat Feb 18 12:28:36 2017 +0000 @@ -123,6 +123,9 @@ else { file_put_contents('/var/ywww/debug/phpDebug',"parms: $go\n". print_r($parameters,TRUE)."\n",FILE_APPEND); + if ($code=="") { + file_put_contents('/var/ywww/debug/phpDebug',"error elt:\n$out\n",FILE_APPEND); + } } } else {