Coding a secure XTE call using PHP
Sometimes a secure XTE call is necessary based on the type of information you plan to extract from ProStores and use in your PHP application. I know the big one that I need is anything having to do with credit card details. So, whether you are looking to retrieve those details, or if you would like to know how to process http data via a secure channel here's some info.
One of the best functions I've found to process the proper http data is a built in function called fsockopen. You're basic URL call would look something like the following:
$socket = fsockopen("www.domain.com", 80);
// 80 = port that you want to post through
Now if you wanted to go secure, you would need to change it up a smidge.
$socket = pfsockopen("ssl://www.domain.com", 443);
// 443 = secure port
Also, you'll need to make sure your PHP has openssl installed and configured.
neoverve
Subscribe to the feed for this blog