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 12-02-2007, 11:07 AM Automate Withdrawals
MoForce's Avatar
Super Talker

Posts: 145
Name: Jack Shalt
Trades: 0
Anyone know how to automate withdrawals using e-gold? Their SCI info and stuff doesn't help. I know how to automate deposits, but not withdrawals.

thanks!
MoForce is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-02-2007, 01:50 PM Re: Automate Withdrawals
rogem002's Avatar
PHP Chap

Posts: 843
Name: Mike
Location: United Kingdom
Trades: 0
Have you tried asking there support?
__________________
My Blog/Site:
Please login or register to view this content. Registration is FREE
rogem002 is offline
Reply With Quote
View Public Profile Visit rogem002's homepage!
 
Old 12-02-2007, 02:13 PM Re: Automate Withdrawals
MoForce's Avatar
Super Talker

Posts: 145
Name: Jack Shalt
Trades: 0
Quote:
Originally Posted by rogem002 View Post
Have you tried asking there support?
What they'll say is the information is all here
http://e-gold.com/unsecure/sci_home.html

I've got a script that I've made, but it would reveal the source account's # and password if someone viewed the page source. It also redirects the page to the source's account already logged in, but it does perform the task of sending the payee the amount they requested. I know there are way better scripts then the one I made so I was wondering if anyone knew of any or how I would go about fixing mine so it doesn't reveal anything important (#, pword, etc.) and instead or redirecting to the source account on e-gold go to some sort of confirmation page on my site.
MoForce is offline
Reply With Quote
View Public Profile
 
Old 12-02-2007, 11:34 PM Re: Automate Withdrawals
Ultra Talker

Posts: 483
Trades: 0
You need to use cURL on the server side to make the requests to the e-gold.com server. That is to say, have the form get the necessary details from the payee and send the form to a script on your server. From there, make a cURL request to e-gold.com, with a combination of your 'secret' stuff as well as the payee information. Finally, depending on the result of the cURL request, show a 'yay' or a 'nay' to the original user...
__________________

Please login or register to view this content. Registration is FREE
TwistMyArm is offline
Reply With Quote
View Public Profile
 
Old 12-04-2007, 12:07 AM Re: Automate Withdrawals
MoForce's Avatar
Super Talker

Posts: 145
Name: Jack Shalt
Trades: 0
I found a script and it works...

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);
     
    } 

Last edited by MoForce; 12-04-2007 at 12:16 AM..
MoForce is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Automate Withdrawals
 

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.84235 seconds with 12 queries