Cardservice lphp won't create array
| From: | Brian Dunning | Date: | Fri, 03 Sep 2004 16:00:26 +0000 |
| Subject: | Cardservice lphp won't create array | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-195745@lists.php.net to get a copy of this message | ||
You'll need to be generally familiar with Cardservice's lphp class to answer this one:
I'm properly setting the $myorder array (as verified by outputting it with a while loop) - but upon executing the next step:
$charge_result = $mylphp->curl_process($myorder);
I then attempt to display the full results with this:
while (list($key, $value) = each($charge_result))
{
echo htmlspecialchars($key) . " = " . htmlspecialchars($value) . "<BR>\n";
}
But I get:
Warning: Variable passed to each() is not an array or object
It appears that somehow lphp is not creating the results array that it's supposed to. I am properly including the lphp.php file, and I've verified that curl is turned on. Anyone have a clue, or is there any more info I need to provide?
TIA,
- Brian