3
Contributors
6
Replies
10
Views
7 Years
Discussion Span
Last Post by veledrom
0

Hi.

Yes this thing works... Infact, the most famous payment gateway PAYPAL works on this principle...

If you want to make your transaction more secure, use CURL. Using this, you can get your data processed from other server.

Otherwise, this simple POST also works good.

0

Is there any POST example for me?

I'll also read about CURL while waiting.

Thanks

0

I have downloaded curl and ream the installation for win and ubuntu. However, i didn't get it. Is there any source where it is explained step by step?

thanks

0

Hi,

Why to get the CURL Library individually and install it.. You can use XAMPP/WAMP type integrated environment apps, that gives you almost everythng.. They have built in curl extensions for windows (you might have to enable it from php.ini file).

And for the CURL learning/tutorial, check out the links below.. they are good for beginners. You can switch to advanced version later on.

http://www.higherpass.com/php/Tutorials/Using-Curl-To-Query-Remote-Servers/

http://blog.unitedheroes.net/curl/

0

For example: how do i check if username=1 and password=2 in check.php page and return TRUE or FALSE?

<?  
$ch = curl_init(); 
curl_setopt($ch, CURLOPT_URL, 'http://www.mysite.com/check.php'); 
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); 
curl_setopt(CURLOPT_USERPWD, '[username]:[password]') 

$data = curl_exec(); 
curl_close($ch); 
 ?>
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.