Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 08-08-2006, 01:40 PM E-gold automation
Junior Talker

Posts: 1
Trades: 0
I am working on an e-gold payment script for an e-gold number guess game. The function below is supposed to make an automated payment but it's not working. I'm not sure what is the problem as no error was output. Can anyone help?
The script is below:

PHP Code:

function _MakeSpend($from$frompass$to$amount$memo) {
        
$memo str_replace(" ","%20",$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($chCURLOPT_USERAGENT,"Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
        
curl_setopt($chCURLOPT_RETURNTRANSFER,0);
        
curl_setopt($chCURLOPT_HEADER0);
        
$fp tmpfile();
        
curl_setopt ($chCURLOPT_FILE$fp);
        
$result curl_exec($ch);
        
curl_close($ch);
        
fseek($fp,0,SEEK_SET);
        while(!
feof($fp)) $result.=fread($fp,1024);
        
fclose($fp);
        
$result strtolower($result);
        
$result strstr($result,"your batch number for confirmation is "); //I can get the batch number, but no payment was sent
        
$result substr($result,51,8);
        return 
$result;
    } 
Thanks.

melissa
mel03 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to E-gold automation
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09685 seconds with 12 queries