FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » header function
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: header function [message #172168 is a reply to message #172167] Wed, 02 February 2011 14:20 Go to previous messageGo to previous message
me is currently offline  me
Messages: 192
Registered: September 2010
Karma:
Senior Member
On 2/2/2011 8:56 AM, Jerry Stuckle wrote:
> On 2/2/2011 8:49 AM, Bill B wrote:
>> On 2/2/2011 8:10 AM, Jerry Stuckle wrote:
>>> On 2/2/2011 7:38 AM, Bill B wrote:
>>>> On 2/2/2011 7:23 AM, Jerry Stuckle wrote:
>>>> > On 2/2/2011 7:16 AM, Bill B wrote:
>>>> >> If somepage.php is loaded in a browser, and a script external to
>>>> >> somepage.php that contains header('Location: somepage.php') is
>>>> >> triggered
>>>> >> by some event, will that call have the effect of refreshing
>>>> >> somepage.php?
>>>> >>
>>>> >> php.net notes that the "location' string returns a redirect (302)
>>>> >> status
>>>> >> code to the browser. Under these circumstances, the redirect
>>>> >> triggered
>>>> >> by the external script points to the same page currently loaded in
>>>> >> the
>>>> >> browser. Will that choke the browser in any way?
>>>> >>
>>>> >> Thank you,
>>>> >>
>>>> >> Bill B
>>>> >
>>>> > How is an external script going to trigger a header call? HTTP is a
>>>> > request/response protocol; you can't "push" data to the client.
>>>> >
>>>>
>>>> It is a "listener" script, waiting for data to be sent from another
>>>> source, PayPal in this case.
>>>>
>>>> Bill B
>>>
>>> That doesn't matter. The question is - how is this script going to send
>>> a Location: header (or any other data) without a request from the
>>> client?
>>>
>>
>> The request is received from PayPal. Related information...this same
>> listener script a) receives data from PayPal, b) sends data back top
>> PayPal, then c) receives validation from PayPal (or not, depending). The
>> script is successfully causing the data received from PayPal to be
>> written to a MySQL database. So the script is executing.
>>
>> Bill B
>>
>> P.S. to Erwin, thank you, still processing the information, appreciate
>> the help.
>
> But this is not the script which was building a page for the browser!
>

Now I get it. Although you kept repeating the same thing, it just now
sunk in.

Thank you,

Bill B
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Translate business information for free
Next Topic: Shri Shraddha Astrology
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 05:36:53 GMT 2024

Total time taken to generate the page: 0.03504 seconds