Some extra debug info added while fixing northern bc

This commit is contained in:
james 2010-01-12 06:43:22 +00:00
parent 591f46b29d
commit 357263a20b
2 changed files with 5 additions and 2 deletions

View File

@ -64,7 +64,7 @@ case 'check':
$keys=array_keys($data);
if(!array_key_exists('awards', $data)) {
echo error(i18n("Invalid XML response. Expecting '%1' in '%2'",array("awards",join(',',array_keys($data)))));
// echo "response=".print_r($datastream);
// echo "response=".print_r($data);
return;
}

View File

@ -50,9 +50,12 @@
xmlCreateRecurse($data);
$str = $output;
break;
default:
echo "Unknown fair type {$fair['type']}";
break;
}
// echo "<pre>Curl Send: $str</pre>";
// echo "<pre>Curl Send: (type:{$fair['type']}=>$url) $str</pre>";
$ch = curl_init(); /// initialize a cURL session
curl_setopt ($ch, CURLOPT_URL, $url);