Question : php file changes not being displayed in browser and file modified date not changing

Hi,

I’m developing a php database application.

I have a problem that when I change my php file the content on the Intranet website is not changing. It's as if IIS has cached an old copy. When I look at the content of the php file in my php editor it looks correct. I've checked IIS is linking to the correct folder and even navigated to the file through IIS. The problem seems to be causes by the fact that the folder for the website is installed in a subfolder of  C:Program Files  i.e. C:\Program Files\<application name>\inetpub\wwwroot

I’ve noticed two things:
1. When I edit and save the file it’s modified date does not change.
2. IIS also does not recognise that the file has changed.

It is definitely something to do with the website being in C:\Program Files. I’ve just created a new website in IIS using a different port number and linked it to a replica of the site saved in ‘C:\<application name\inetpub\wwwroot’ and it works fine. When I open and edit the file the modified date is changed and the change is shown in my browser as soon as I refresh the screen.

Permissions look ok. But I’m not entirely sure what they should be for users to access the site.

Any ideas greatfully received.

Answer : php file changes not being displayed in browser and file modified date not changing

Yes, that's the problem.  You need to get your site out of C:\Program Files if you want it to work.  That's one of the areas that requires special permissions.  Documents and Settings is another.  ‘C:\<application name\inetpub\wwwroot’ is a good place for it.
Random Solutions  
 
programming4us programming4us