Re: Talking Back With HTTPS Server
| From: | Joe Stump | Date: | Tue, 12 Dec 2000 20:35:17 +0000 |
| Subject: | Re: Talking Back With HTTPS Server | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-29952@lists.php.net to get a copy of this message | ||
Well I'm assuming you have figured out how to get encrypted data from the
server with php (there are a few ways to do that).
So lets say the line looks like this:
"authorized","444333","10/7/00","15:20"
Which is comma deliminated and has "'s around it.
// what you got from the server
$line = '"authorized","444333","10/7/00","15:20"';
$line = str_replace('"','',$line);
$fields = explode(',',$line);
while(list(,$value) = each($fields))
{
echo $value.'<br>';
}
That hsould do it. If you need to get the data from the server unencrypted I
would do this $line =
w3m-ssl -dump https://server.com/foo.php?value=1`;
--Joe
On Tue, Dec 12, 2000 at 11:50:20AM -0000, JB wrote:
> Hey,
>
> I working on an e-commerce project in which we are using iBill for real time credit card
> processing. I know how to talk to the iBill server, it is accomplished by using SSL to send form
> data (name="amount" value="35.50"). Once the info is sent posted to iBills
> processing script (https://secure.ibill.com/cgi-win/ccard/tpcard.exe) the server then respondes with
> something like "authorized","444333","10/7/00","15:20", and
> so on and so forth. It basically responds with the either authorized or declined and information
> regarding the transaction. Each piece of information is surrounded in double-quotes and is seperated
> by a coma.
>
> So, how do I get PHP to take the information iBill sends back and do something with it? I guess
> the main thing I'm unclear about is how to receive the data iBill returns, and how to split up
> the string into seperate variables so I can use it.
>
> Thanks a bunch.
---
Joe Stump
PHP Programmer
www.Care2.com