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.

About this Entry

This page contains a single blog entry by Ben Powers published on April 4, 2008 1:53 PM.

Tribal Hollywood was the previous entry in this blog.

Become.com order confirmation tracking code in ProStores is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.