Re: Weird incrementing problem
- From: Brian <ThisIsNotMyReal@xxxxxxxxxx>
- Date: Thu, 31 Mar 2005 16:11:51 GMT
Aha! That's what's going on. I used mail() to send me an email when it
runs, and I got two of them.
But why would the code snippet I posted earlier, put into a non-public PHP
file still run twice? Does it sound like an Apache or PHP configuration
problem?
> If I may take a wild guess, the script is somehow invoked twice. Have you
> checked whether there is only a single connection to your webserver
> (it's being used on a webserver, isn't it?) that reqests the page
> invoking the script? Maybe a forgotten code snippet on some other page?
>
> Perhaps you should try to change the script's name? Or, even better,
> simply log each invocation (with the filename/command-line of the script
> that, say, included this script) to some local file, so that you are
> able to check whether or not it is called from the right pages?
>
> As I said, just some wild guesses...
> Mike
>
.
- Follow-Ups:
- Re: Weird incrementing problem
- From: Ken Robinson
- Re: Weird incrementing problem
- References:
- Weird incrementing problem
- From: Brian
- Re: Weird incrementing problem
- From: Michał Woźniak
- Weird incrementing problem
- Prev by Date: Re: php editor - recommendations?
- Next by Date: Re: php editor - recommendations?
- Previous by thread: Re: Weird incrementing problem
- Next by thread: Re: Weird incrementing problem
- Index(es):
Relevant Pages
|