You are here: Re: Does PHP "cache" scripts? « PHP Programming Language « IT news, forums, messages
Re: Does PHP "cache" scripts?

Posted by NC on 09/14/06 23:21

StevePBurgess@gmail.com wrote:
>
> This script snippet that does all the work is shown - the database
> connection is established and after doing its work the script returns
> the user to the referring page.
....
> On my own server this works perfectly - but when I upload it to my
> client's shared server it sometimes works and sometimes doesn't.
> It is intermittent.

Check register_globals setting on the two servers. Maybe something
writes over your GET/POST variables or vice versa...

Also, how do you handle MySQL errors? The behavior you are observing
is consistent with queries not being executed (which could happen when
your MySQL server is overloaded). The script tries to connect to the
MySQL server, gets an error, fails to execute the queries due to no
connection and redirects...

> Could PHP be returning a cached result of the script?

No, but it is possible that the hosting company does. It is unlikely
though, because the problem is intermittent...

Cheers,
NC

 

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

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