Page 1 of 1

modified PHP file not updating

Posted: Wed Jan 19, 2011 4:44 am
by mx_champion
Hi

First time here :)

Got a weird issue if anyone can shed any light?

Got a standard installation of PHP 5.1.4 on linux running with Apache.

All working absolutely fine apart from that updates to the PHP files are not reflected in the browser.

For example:

Open PHP page in browser which simply echo's "hi" - works fine
Update the page on desktop PC so it echo's "hi again", upload via winscp to the box and overwrite the file. Refresh in browser and get "hi" only.
If I edit the file on the server it says echo "hello again".

So it's like it always references the original file.

If I delete the file I get 404 as expected.

If i then upload the new file I still get the original "hi" only.

This box is not load balanced in anyway, apache config is standard.

I have cleared cache in the browser and added no cache to the headers in the php file to no avail.

Any ideas? Is this a config issue with server side cache?

Cheers guys

C

Re: modified PHP file not updating

Posted: Wed Jan 19, 2011 6:12 am
by Peter Kelly
This may sound really stupid but I myself have done this before. Are you uploading to the exact same place your trying to visit.