|
Posted by Andy Hassall on 09/14/06 21:28
On 14 Sep 2006 13:41:23 -0700, StevePBurgess@gmail.com wrote:
>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.
How do you mean it doesn't work, exactly?
>Could PHP be returning a cached result of the script? If no, what on
>earth can be happening?
PHP doesn't cache scripts. There's extensions like APC that cache the compiled
form of the script, but that doesn't (or shouldn't) have anything to with the
results.
MySQL can be configured to have a cache, but I don't know much about that.
Your browser can cache, but you can send headers that advise the browser not
to cache (look up the Pragma HTTP header).
Your ISP may have "transparent" caching proxies; ntl: are infamous for that.
It could be something much simpler; I don't see any error checking on the
mysql_query calls.
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
[Back to original message]
|