PHP Scripts Run Twice?
This is my first post in this community, so my apologies if this is a common question. I've been unable to find any help for this problem on php.net, either, partly because it's been down or very slow for the past couple of days.
Nearly all of my PHP scripts are being run twice each time they're accessed. Whether I trigger the script by a normal hyperlink, a form, or just punching the URL into my browser, I see two successive GET requests in the server logs. Or, if the script was triggered by an HTML form using the POST method, then I get one POST and one GET in the log.
No other content is doing this. Images, CGI scripts, HTML::Mason components (a hypertext preprocessing system like PHP, only using Perl instead) -- they all just run once, either GET or POST, like they should.
But, just to make things even more confusing, there's a couple of PHP scripts that also run only once. Just like they should.
I cannot for the life of me see what's the same about those two that's different about all the others. (I can post the code if you like, but I can see no point unless requested.)
Either way, it's causing me extreme grief, because I want to write a PHP system that will make database entries, and I really don't need the entries getting put in twice. Can anyone help?
Nearly all of my PHP scripts are being run twice each time they're accessed. Whether I trigger the script by a normal hyperlink, a form, or just punching the URL into my browser, I see two successive GET requests in the server logs. Or, if the script was triggered by an HTML form using the POST method, then I get one POST and one GET in the log.
No other content is doing this. Images, CGI scripts, HTML::Mason components (a hypertext preprocessing system like PHP, only using Perl instead) -- they all just run once, either GET or POST, like they should.
But, just to make things even more confusing, there's a couple of PHP scripts that also run only once. Just like they should.
I cannot for the life of me see what's the same about those two that's different about all the others. (I can post the code if you like, but I can see no point unless requested.)
Either way, it's causing me extreme grief, because I want to write a PHP system that will make database entries, and I really don't need the entries getting put in twice. Can anyone help?
