Re: Weird incrementing problem



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
>

.



Relevant Pages

  • Re: Visual Basic and JavaScript
    ... Response is server-side object and judging from the code snippet you place ... it in client script blocks. ... > decided to do a small portion of my DW app in VB, ...
    (microsoft.public.vsnet.general)
  • RE: Streaming javascript and XP Service Pack 2
    ... Thanks for your posting. ... tests based on your description and the code snippet you provided. ... it seems that the script can run correctly on my side. ... #Scripts may not run on a local HTML Web page that references .htc or .xml ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Using VBScript to send message using CDO.message
    ... I found this code snippet, which is similar to Vlad's idea, ... Set cdoMessage = CreateObject ... I used the stock script from the Script Center ... > Windows 2003 server and it won't. ...
    (microsoft.public.scripting.vbscript)
  • Re: Weird incrementing problem
    ... If I may take a wild guess, the script is somehow invoked twice. ... checked whether there is only a single connection to your webserver ... that, say, included this script) to some local file, so that you are ...
    (comp.lang.php)
  • Re: "End Of Line" Confusion
    ... If you email the script to me, I'd be happy to take a look at it and ... possible source of such mysterious errors in Python, apparently, is ... mixing tabs and spaces in your indentation. ... which could explain why the code snippet ...
    (comp.lang.python)