$result=$bitcoin->validateaddress($address);
if($result['isvalid']==1){
error_log(time()."UNLOCKING WALLET: $WALLETPASS", 0);
$bitcoin->walletpassphrase($WALLETPASS,30);
$temp=array();
$temp[$address]=$btcpending;
print_r($temp);
error_log(time()."bitcoin address:>$address to send:".number_format($btcpending,8), 0);
$txid=$bitcoin->sendmany("webclick",$temp,1,"action_id:".$actionid);
error_log(time()."bitcoin address:>$address to send:".number_format($btcpending,8)."txid:".$txid, 0);
will output
[Wed Jan 16 20:42:13 2013] [error] [client 127.0.0.1] 1358368933UNLOCKING WALLET: XXXXXXXXXXXXXXX, referer: http://localhost.com/
[Wed Jan 16 20:42:13 2013] [error] [client 127.0.0.1] 1358368933bitcoin address:>1DQNJWxVsbiVwTbxVwHXqnN5gfjs8VK2Kk to send:0.01007757, referer: http://localhost.com/
[Wed Jan 16 20:42:13 2013] [error] [client 127.0.0.1] PHP Warning: fopen(http://...@127.0.0.1:8332/): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error\r\n in /var/www/html/include/jsonRPCClient.php on line 132, referer: http://localhost.com/
[