Page 2 of 2
Re: Duplicate emails being sent
Posted: Tue Nov 18, 2008 6:20 pm
by Eran
VladSun wrote:pytrin wrote:Exim (or whatever mail server you use) is probably misconfigured.
If it so, why there are 2 lines in the error log per a single execution?
Missed that
Could this be due to apache directory settings somehow?
Re: Duplicate emails being sent
Posted: Tue Nov 18, 2008 6:26 pm
by VladSun
pytrin wrote:Could this be due to apache directory settings somehow?
It's the same for PHP CLI as far as I understood.
Re: Duplicate emails being sent
Posted: Wed Nov 19, 2008 9:48 am
by pickle
VladSun wrote:That's for PHP CLI, right?
PHP version?
That's for both CLI & web version.
PHPv5.2.6
Re: Duplicate emails being sent
Posted: Wed Nov 19, 2008 10:13 am
by VladSun
I still need to be clarified - do PHP CLI scripts execute twice?
Re: Duplicate emails being sent
Posted: Wed Nov 19, 2008 10:18 am
by pickle
VladSun wrote:do PHP CLI scripts execute twice?
CLI scripts get executed only once.
Re: Duplicate emails being sent
Posted: Wed Nov 19, 2008 10:32 am
by VladSun
What about your Apache access file - does the GET line appears once or twice? Maybe a browser problem

Re: Duplicate emails being sent
Posted: Wed Nov 19, 2008 10:43 am
by pickle
VladSun wrote:What about your Apache access file - does the GET line appears once or twice?
I'm not sure what you're asking.
VladSun wrote:Maybe a browser problem

Sonofa! It is a browser issue! This problem only happens in FF3, not IE. I never would have imagined that. Any clues as to what's up with that?
Re: Duplicate emails being sent
Posted: Wed Nov 19, 2008 11:18 am
by VladSun
pickle wrote:VladSun wrote:What about your Apache access file - does the GET line appears once or twice?
I'm not sure what you're asking.
I meant the access.log file
pickle wrote:VladSun wrote:Maybe a browser problem

Sonofa! It is a browser issue! This problem only happens in FF3, not IE. I never would have imagined that. Any clues as to what's up with that?
Gosh! I was about to say this much earlier, but I misundertood you with the CLI PHP - thought it had the same problem.
Sorry, but I have no idea what could cause this in FF browser.
Still, you must remove the "echo" line from the code in your very first post. Otherwise, you may get two emails again

Re: Duplicate emails being sent
Posted: Wed Nov 19, 2008 11:20 am
by pickle
Ya, the "echo" line is gone.
Thanks for your help.
Re: Duplicate emails being sent
Posted: Wed Dec 03, 2008 11:07 am
by pickle
I think I figured out (with help from ~Vladsun of course) why this is happening.
I've got Firebug enabled & I must have set it to automatically re-submit form data so it can inspect the result. That's why the page gets submitted twice, but I only see the output once.
Incidentally, does anyone know how to turn that off? I can't find the setting in Firebug, and Google has no clue.