Jump to content

e-currancy transfer save


asmith

Recommended Posts

how can i save the amount number of a user which transfer to the site account , into mysql  immidiately after the transfer is done ?

for example , e-gold .

how  can i put a link for e-gold on site , and when user john click on it , and transfer 3 $ to the site egold account,  i save that 3 in mysql after his transfer has been done successuly ?

Link to comment
Share on other sites

don't quite understand your question

perhaps you should explain better

 

nevertheless...

if you mean to be able to access john's account via e-gold, and make a script to access john's account given credentials like pass/user, it should probably involve you POSTING to the form on that site and then reading its contents

 

you can use cURL for this

 

to save any piece of data in mysql is no different just because the piece of data comes from e-gold

Link to comment
Share on other sites

hmm

lets say it in a different way ,

i want to save the amount that has been transfer to the site account , in mysql BUT exactly after it has been transfered.

 

example  :

john transfer 3 $ e-gold from his egold account to the site e-gold account ,  after he has transfered, the number of his amount will be stored in site mysql database.

Link to comment
Share on other sites

hmm i'm getting more confused.

can you show me any example codes ?

 

things that are making me confuse are : the process of transfering is in another site . how can i know when it is finished  ?  can i run the egold transfer page THROUGH my site ?  and how to find out HOW MUCH he has transfered ?

Link to comment
Share on other sites

if its an external site you have no control over it, unless you're the admin of that site

 

 

however instead of the user communicate with that site himself, you can faciliate the communication between e-gold and the user, by having your site/server/php script communicate to e-gold, and the user use your site to communicate to e-gold, this way your site is the middleman, so all the data passes through you, and you have access to it, POSTING to the form on e-gold via PHP is one way of doing this

 

HTTP POST is a protocol to communicate with other websites, primarily used in posting html forms

 

I suspect that e-gold must use a form to do any kind of transaction, you can make a php script to POST to the from on e-gold using cURL, this way you can control the information being sent to e-gold

 

examples:

http://curl.haxx.se/libcurl/php/examples/

http://us.php.net/curl

 

<?php
//
// A very simple PHP example that sends a HTTP POST to a remote site
//

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL,"http://www.mysite.com/tester.phtml");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,
            "postvar1=value1&postvar2=value2&postvar3=value3");

curl_exec ($ch);
curl_close ($ch); 
?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.