[PHP] Help with parsing result code

2004-10-15 Thread Carlos Alberto Bazan-Canabal
Hi.

I'm setting up a credit card payment app. When I send the information
through the form I get a result similar to this:

NOT CAPTURED:00:428930479495:NA:1015:9755676331042890:1:1

This is the only data in the result page. 

I have never done parsing, and I have no idea of how to get this
information inerted into variables.

The result data is a series of data separated by ':'

Could anyone please give me a hint as of where to look for information
on how to do the parsing, or a short sample script?

And if also someone knows of a good reference manual on scraping and
parsing with PHP, I'd appreciate it.

Thx

Carlos.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Help with parsing result code

2004-10-15 Thread Carlos Alberto Bazan-Canabal
Thank you Matt and Ed.

I have solved the issue and started looking into parsing and regular
expressions.

Thx

Carlos.


On Fri, 15 Oct 2004 10:57:02 -0500, Matt M. [EMAIL PROTECTED] wrote:
  http://us2.php.net/manual/en/function.preg-split.php
 
  should do it
 
 
 also http://us2.php.net/explode


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Getting info off an HTTPS page

2004-10-15 Thread Carlos Alberto Bazan-Canabal
Hi,

I am working on setting up a VPOS system, and I need to read the
results of sending the CC information to the bank.

When sending the form I am doing it with HTTPS port 443 with POST
method in my form and application/www-form-urlencoded

When I get the results of my submission I get another https URL .
Since I send the form using POST, I get no params in the URL. BTW, GET
is not supported.

What I need to do is be able to read the results of that page so I can
parse them and have the machine understand what was the result of the
credit card charge.

Any idea of how I can get to save the results of that page into a variable?

Thanks!

Carlos.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php