modified PHP file not updating

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
mx_champion
Forum Newbie
Posts: 1
Joined: Wed Jan 19, 2011 4:35 am

modified PHP file not updating

Post 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
Peter Kelly
Forum Contributor
Posts: 143
Joined: Fri Jan 14, 2011 5:33 pm
Location: England
Contact:

Re: modified PHP file not updating

Post 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.
Post Reply