|
Posted by Marcel on 06/02/06 14:08
"Colin McKinnon"
<colin.thisisnotmysurname@ntlworld.deletemeunlessURaBot.com> schreef in
bericht news:syIfg.6025$zv2.5125@newsfe4-gui.ntli.net...
> Marcel wrote:
>
>>
>> "Erwin Moller"
>> <since_humans_read_this_I_am_spammed_too_much@spamyourself.com> schreef
>> in
>> bericht news:447ee31b$0$31644$e4fe514c@news.xs4all.nl...
>>> Marcel wrote:
>>>
>>>> I have a problem with a PHP page that seems to get executed twice.
>>>>
>>>> I am running PHP5 ISAPI on 2003 server.
>>> Hi Marcel,
>>>
>>> Sorry to say, but this is most likely a problem in your code, not in the
>>> server/webserver/PHP.
>>
>> Yeah, maybe you are right but i am an experienced coder and i have been
>> searching for 2 days now where this is coming from.
>>
>
> I was willing to believe you up until I read the code you posted.
>
> The first place you should have been looking to solve this was in your
> server logs. That would answer the question once and for all as to how
> many
> times the page was invoked and by whom. You should also get something
> which
> lets you see the traffic out of your browser - since you seem to be using
> Microsoft server-side, try iehttpheaders.
>
> If, after the above you still think the code was getting executed twice
> then
> you should start with 'hello world' and work upwards till you've
> reproduced
> the problem - then i you still can't explain why, try posting here.
>
> Some recommended reading:
>
> http://www.dagbladet.no/development/phpcodingstandard/
> http://www.amazon.com/gp/product/1590595009/102-3880293-4550508?v=glance&n=283155
> http://www.catb.org/~esr/faqs/smart-questions.html
>
>
>>>> Can this be a proxy-setting or an ISA`server related subject???
>>>
>>> I don't think so, but then again, I don't know what an ISAserver is.
>>>
>
> Ah ignorance is bliss. Unfortunately its exactly the kind of the thing to
> expect from ISA^HD so why didn't you try bypassing it, or reading IT's
> logs?
>
> C.
I solved it by replacing
header("Location:newsitems.php");
with a javascript redirect
<script>
location='newsitems.php';
</script>
And that solved my problem so i think (i am not sure but....) there is a bug
in PHP5.1.2 location header function implementation.....
Marcel
Navigation:
[Reply to this message]
|