Re: [PHP] curl help or other suggestion

2010-06-17 Thread Michael Alaimo
As it turns out curl_multi does not block. I was able to use that plus connection tracking to solve my problem. Thanks Ash and Andrew. Mike > On Thu, Jun 17, 2010 at 9:05 AM, Michael Alaimo > wrote: >> I am trying to use register_shutdown_function.  Previous to the script >> shutting down I u

Re: [PHP] curl help or other suggestion

2010-06-17 Thread Andrew Ballard
On Thu, Jun 17, 2010 at 9:05 AM, Michael Alaimo wrote: > I am trying to use register_shutdown_function.  Previous to the script > shutting down I use curl to grab a website. > > Basically I want to know if the user has hit the stop button or left the > page prematurely. > > The only problem is tha

Re: [PHP] curl help or other suggestion

2010-06-17 Thread Ashley Sheridan
On Thu, 2010-06-17 at 09:37 -0400, Michael Alaimo wrote: > > On Thu, 2010-06-17 at 09:05 -0400, Michael Alaimo wrote: > > > >> I am trying to use register_shutdown_function. Previous to the script > >> shutting down I use curl to grab a website. > >> > >> Basically I want to know if the user has

Re: [PHP] curl help or other suggestion

2010-06-17 Thread Michael Alaimo
> On Thu, 2010-06-17 at 09:05 -0400, Michael Alaimo wrote: > >> I am trying to use register_shutdown_function. Previous to the script >> shutting down I use curl to grab a website. >> >> Basically I want to know if the user has hit the stop button or left the >> page prematurely. >> >> The only pr

Re: [PHP] curl help or other suggestion

2010-06-17 Thread Ashley Sheridan
On Thu, 2010-06-17 at 09:05 -0400, Michael Alaimo wrote: > I am trying to use register_shutdown_function. Previous to the script > shutting down I use curl to grab a website. > > Basically I want to know if the user has hit the stop button or left the > page prematurely. > > The only problem is

[PHP] curl help or other suggestion

2010-06-17 Thread Michael Alaimo
I am trying to use register_shutdown_function. Previous to the script shutting down I use curl to grab a website. Basically I want to know if the user has hit the stop button or left the page prematurely. The only problem is that curl runs and finishes its call before the shutdown function is ca

Re: [PHP] cURL Help - Posting a Form

2004-09-11 Thread Nick Wilson
* and then Nick Wilson declared > hi all, > > Im trying to get the following php code to output the > 'success'/'failure' page from posting a form to a site. The problem is H... it helps if you are submitting to the 'action' url of course sigh -- Nick W -- PHP General Mailin

[PHP] cURL Help - Posting a Form

2004-09-11 Thread Nick Wilson
hi all, Im trying to get the following php code to output the 'success'/'failure' page from posting a form to a site. The problem is that there is no output at all, so i must be doing somthing silly, but cant work out what! ;-) ## Code $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://exa

RE: [PHP] CURL Help

2004-04-20 Thread jon roig
ip" => $zip ,"x_country" => $country ,"x_Invoice_Num" => $invoicenum ,"x_Description" => $product_description ); Then add it in with the other curl stuff... curl_setopt($ch, CURLOPT_POSTFIELDS,$data);

Re: [PHP] CURL Help

2004-04-19 Thread Curt Zirzow
* Thus wrote Monty ([EMAIL PROTECTED]): > Hi, I'm trying to get a site working with our credit card merchant gateway's > "direct mode" using CURL. But I'm not exactly sure if I'm doing it right. > Here's what the gateway wants sent to it as a POST: > > POST /gw/sas/direct3.0 HTTP/1.0 > Hos

[PHP] CURL Help

2004-04-19 Thread Monty
Hi, I'm trying to get a site working with our credit card merchant gateway's "direct mode" using CURL. But I'm not exactly sure if I'm doing it right. Here's what the gateway wants sent to it as a POST: POST /gw/sas/direct3.0 HTTP/1.0 Host: secure.gateway.com:1401 Content-Type: applica