
August 9th, 2006, 12:44 AM
|
|
|
|
Join Date: Apr 2007
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
e-gold auto spend
Can anyone help me with e-gold auto spend script?
I have this code below but it doesn't work.
php Code:
Original
- php Code |
|
|
|
function _MakeSpend($from, $frompass, $to, $amount, $memo) { $addr = "https://www.e-gold.com/acct/confirm.asp?AccountID=" . $from . "&PassPhrase=" . $frompass . "&Payee_Account=" . $to . "&Amount=". $amount ."&PAY_IN=1&WORTH_OF=Gold&Memo=". $memo . "&IGNORE_RATE_CHANGE=y&PAYMENT_ID=1"; $ch = curl_init($addr); curl_setopt($ch, CURLOPT_USERAGENT,"Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"); curl_setopt($ch, CURLOPT_RETURNTRANSFER,0); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt ($ch, CURLOPT_FILE, $fp); $result = curl_exec($ch); curl_close($ch); $result = strstr($result, "your batch number for confirmation is "); //I can get this but no payment was received $result = substr($result, 51, 8); return $result; }
|