You are here: Script Reloading Issue « PHP Programming Language « IT news, forums, messages
Script Reloading Issue

Posted by Tom on 06/13/06 22:42

I have a PHP framework that integrates buffering and sessions among
other things and I'm having a problem where my script will get reloaded
2 or 3 times before being output to the browser. I haven't found any
other references to this sort of problem so I thought I'd try here.

I do most my development on a Windows XP Pro desktop (running XAMPP),
so I thought maybe it was an XP-specific problem, but I just tried it
on my linux host and same thing. Here's a little log that helps
illustrate:

Session|Script Basename Datetime Split Time
-----------------------------------------------------------------------------------------
001|01 test.php [2006 Jun 13 06:27:00] +-----+ ms
002|01 test.php [2006 Jun 13 06:27:01] +348.15 ms
003|01 test.php [2006 Jun 13 06:27:01] +265.15 ms

That's loading the page in Firefox once. Counters in the left column
are a session and static variable respectively. Other scripts will
load twice. It's especially problematic where there's something like a
email trigger involved as it will send off multiple emails where only 1
is wanted.

Anyone else encounter anything like this? Could it be a Session or
buffering problem? Something to do with logging perhaps? And why 2 or
3 times and not 7 or 8 or 1000? Any insight welcome.

Puzzled,
Tom

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация