Re: [PHP3] re-posting? ( initiating a secondary web transaction from inside PHP3?) From: Michael Stearne (mstearne <email protected>)
Date: 02/29/00

I have something to do this in Perl, but not PHP. Check http://Weberdev.com/ to see
if someone submitted something there.

Michael

Terry Mackintosh wrote:

> Hello
>
> Michael Stearne wrote:
> >
> > You can use the fopen function to open a remote url. Does cc processor need to
> > have a POST request? If not, you could use :
> > $fp = fopen("http://www.php.net/ccCheck.html?var1=$var1&name=$var2", "r");
> >
> > Michael
>
> Thanks, that is interesting, will keep it in mind for the future, but
> no, unfortuatly the card proccessor requires the that data arrive a
> "method=post".
>
> Bill also suggested "virutal()", but again, how to "post" veriables?
> also is virtual good for off-server sub-requests? or just local
> on-same-server sub-requests?
>
> Thanks for the help, other ideas?
>
> Terry
>
> >
> > Terry Mackintosh wrote:
> >
> > > Hello
> > >
> > > I've read the manual/docs/faq and find no mention of this, but it seems
> > > it should be some thing that PHP can do?
> > >
> > > Problem:
> > >
> > > Our shopping cart (PHP3/PostgreSQL) needs to pretend to be a web client
> > > (browser) and
> > > make a "post" request to a credit card processing company, get the data
> > > back, then finish building it's own page.
> > >
> > > That is, how do I launch an outgoing web connection, retrive the data,
> > > and use that data to build a new page?
>
> --
> Terry Mackintosh <terry <email protected>> http://www.terrym.com
> sysadmin/owner http://www.shell-connection.com
> Proudly powered by R H Linux, Apache, PHP, PostgreSQL
> "If you don't know where you are going, how can you get there?"
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe <email protected>
> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin <email protected>