Roman Neuhauser wrote:
> # [EMAIL PROTECTED] / 2007-01-20 00:33:10 +0100:
>> I have a tradedoubler webbug to implement in site
> 
> Pardon my ignorance, what's "a tradedoubler webbug"?

http://www.tradedoubler.com/pan/public should explain;
a webbug is merely an <img> tag with a src pointing to some
kind of tracking script.


> 
>> I have an order processing page that is requested *directly* by an online 
>> payment service
>> in order to tell the site/system that a given order has successfully 
>> completely,
>> this occurs prior to the online payment service redirecting the user back to 
>> my site...
>>
>> at the end of the order processing the order (basically the order is marked 
>> as completed)
>> is removed from the session in such a way that there is no longer anyway to 
>> know details
>> about the order, so by the time the user comes back to the site I don't have 
>> the required
>> info to create the required webbug url...
> 
> Wou should still have the order id, or how do they tell you *which*
> order was it? What data do you need? I'm having trouble understanding
> your email at all. Could you try again, using shorter sentences? :)

I think that probably the whole story is a bit superfluous, essentially the 
question is
simply: how do I make a non-blocking http request and let the script continue 
immediately
without ever caring about what response/content is returned by the http request.

nonetheless here is 'flow' of what I was describing.

1. user stuffs things into shopping basket on [my] site (data stored in session)
2. user goes to check out.
3. user chooses online payment.
4. user is redirected to online payment provider site
5. user completes payment successfully
6. online payment provider site contacts [my] site/server directly with 
transaction status/details
7. user is shown 'thank you' page on online payment provider site
8. user is redirected back to [my] site and shown 'real' 'thank you' page.

step 6 does not involve the user or the browser *at all* it's a direct server 
to server
communication. the request the online payment provider makes to my server 
causes the
order to be completed, saved to a database and the relevant data to be removed 
from
the users session. (completed orders 'disappear' from the website - this was a 
'security'
requirement of the client).

normally in step 8 the webbug would be placed on the 'thank you' page, but in 
this case
the data needed to craft the webbug's url is no longer available - the solution 
is
to perform the request the the webbug's url represents directly from my server 
during the
code that runs as a result of the request made by the online payment provider 
in step 6.

this is easy if I merely do this:

        file_get_contents($webbugURL);

BUT this means the http request this entails would block further processing
of my script until the request returns it's content, what I would like to do is
make the request without waiting for *any* kind of communication from the server
reference in the $webbugURL.

does this make sense?


>  

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

Reply via email to