Re: [PHP] caching problem
On Tue, Jun 28, 2011 at 5:53 PM, Fatih P. wrote: > > > On Tue, Jun 28, 2011 at 6:34 PM, Stuart Dallas wrote: > >> On Tue, Jun 28, 2011 at 5:12 PM, Fatih P. wrote: >> >>> On Tue, Jun 28, 2011 at 5:30 PM, Stuart Dallas wrote: >>> Fatih, please explain what you mean by "the code files are being cached. and modifications in methods are skipped and not executed." How are you getting the modified files onto the server, and how are you running the scripts? Are you working directly on the server, or are you uploading the files to the server via FTP, SCP or some other mechanism? OK, this is a development machine, everything is running on it. nothing >>> is being uploaded through ftp, scp or something else. >>> all kind of content caching is disabled. >>> >>> and what I mean by the code files are being cached is: after the >>> modifications, i do get the result which was produced before modification. >>> which shows >>> that the file is not being interpreted by php. how i get to this point >>> that I see errors after restarting the machine which were not there during >>> coding or when >>> i dump an object it doesn't show up anything other than previous content. >>> >>> to recover this situation, either I have to restart httpd which >>> sometimes does work or when it gets more problematic, >>> i have to crush httpd / php on start. and only having this problem on >>> windows machines. >>> >>> sounds funny to most of you but it is happening >>> >> >> I'm sure it is happening, I don't doubt that, but there's probably a very >> simple explanation. >> >> What browser are you using? Certain older browsers such as IE6 have their >> own ideas about whether pages should be cached or not. You can usually >> bypass the browser cache by holding control and/or shift while clicking on >> the refresh button. Try that next time this happens. >> >> Other possibilities include filesystem issues, such that the OS is not >> seeing that the file has been changed - there are levels of caching on >> modern operating systems that most people, quite correctly, are not aware >> of. The likelihood of this being the cause is miniscule. >> >> If you're absolutely certain that you are not using any opcode caching >> (you mentioned that you are using pre-compiled binaries, and it's possible >> they include APC or similar by default), then I have no idea what's going on >> beyond what I and others have already suggested. >> >> using FF3,5 and IE7 as browser. Those browsers should be fine, but forcing a reload (the control/shift + refresh) is always worth trying. Maybe I should compile php myself disabling things i dont need and see it > will make any difference. > You can see what's in your PHP build by creating a script that just contains the following.. Run that and check the output. If you got the binary from php.net then chances are that you don't have any opcode caching modules in there. It's also worth doing a variation on Micky's suggestion - when I want to make sure a script has actually been executed rather than cached data being served I put a call to echo date('r'); in an appropriate place. That way the script output will display the current date and time which should change with each request. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/
Re: [PHP] caching problem
OP: Can we see the methods in question? Have you tried running the code on a different server/host? Have you added any scaffolding to your methods in order to test your caching theory? This would be the first thing I would try (i.e. create random number (or whatever), concat with variable vals generated via method, other.) Sent from my iPhone -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] caching problem
On Tue, Jun 28, 2011 at 6:39 PM, wrote: > Fatih, >I am sorry spell check auto corrected your name, I was not changing > your name on purpose. > It was not my intension to piss you off. > > I understand your frustration, trust me. > I am running 5.3.6 on Windows Server 2008 R2 IIS, I am running massive > class based methods in my own framework. > I am trying to help you narrow down the issue. I never blame PHP first > because in my trouble shooting steps, I never get to PHP before I find the > issue. > > Segmentation Faults: that prevent the php script from completing locking up > resources and causing a nightmare chain of events. It dumps the process at > the fail point can look like it is a PHP thing but it is not. This can > explain sometimes it works and sometimes it does not. > > This can be caused by a host of reasons: > Buffer Overflow, > Attempting to access memory the program does not own. (This also points to > Storage Violations) > Using uninitialized pointers, > Dereferencing Null pointers > > Again suggestions please do not take offense. > > > Richard L. Buskirk > already here to ask for suggestions not to take offense. Anyway, I will re-check these points you have mentioned. thanks.
Re: [PHP] caching problem
On Tue, 2011-06-28 at 17:34 +0100, Stuart Dallas wrote: > On Tue, Jun 28, 2011 at 5:12 PM, Fatih P. wrote: > > > On Tue, Jun 28, 2011 at 5:30 PM, Stuart Dallas wrote: > > > >> Fatih, please explain what you mean by "the code files are being cached. > >> and modifications in methods are skipped > >> and not executed." How are you getting the modified files onto the server, > >> and how are you running the scripts? Are you working directly on the > >> server, > >> or are you uploading the files to the server via FTP, SCP or some other > >> mechanism? > >> > >> OK, this is a development machine, everything is running on it. nothing is > > being uploaded through ftp, scp or something else. > > all kind of content caching is disabled. > > > > and what I mean by the code files are being cached is: after the > > modifications, i do get the result which was produced before modification. > > which shows > > that the file is not being interpreted by php. how i get to this point that > > I see errors after restarting the machine which were not there during coding > > or when > > i dump an object it doesn't show up anything other than previous content. > > > > to recover this situation, either I have to restart httpd which sometimes > > does work or when it gets more problematic, > > i have to crush httpd / php on start. and only having this problem on > > windows machines. > > > > sounds funny to most of you but it is happening > > > > I'm sure it is happening, I don't doubt that, but there's probably a very > simple explanation. > > What browser are you using? Certain older browsers such as IE6 have their > own ideas about whether pages should be cached or not. You can usually > bypass the browser cache by holding control and/or shift while clicking on > the refresh button. Try that next time this happens. > > Other possibilities include filesystem issues, such that the OS is not > seeing that the file has been changed - there are levels of caching on > modern operating systems that most people, quite correctly, are not aware > of. The likelihood of this being the cause is miniscule. > > If you're absolutely certain that you are not using any opcode caching (you > mentioned that you are using pre-compiled binaries, and it's possible they > include APC or similar by default), then I have no idea what's going on > beyond what I and others have already suggested. > > -Stuart > maybe, you're updating the wrong files? I've done that a few times, where the files i THOUGHT it was using, ended up being in the wrong folder (or apache was pointing to a different folder... kinda one in the same). just an alternate spin on it... Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] caching problem
Fatih, I am sorry spell check auto corrected your name, I was not changing your name on purpose. It was not my intension to piss you off. I understand your frustration, trust me. I am running 5.3.6 on Windows Server 2008 R2 IIS, I am running massive class based methods in my own framework. I am trying to help you narrow down the issue. I never blame PHP first because in my trouble shooting steps, I never get to PHP before I find the issue. Segmentation Faults: that prevent the php script from completing locking up resources and causing a nightmare chain of events. It dumps the process at the fail point can look like it is a PHP thing but it is not. This can explain sometimes it works and sometimes it does not. This can be caused by a host of reasons: Buffer Overflow, Attempting to access memory the program does not own. (This also points to Storage Violations) Using uninitialized pointers, Dereferencing Null pointers Again suggestions please do not take offense. Richard L. Buskirk -Original Message- From: Fatih P. [mailto:fatihpirist...@gmail.com] Sent: Tuesday, June 28, 2011 12:13 PM To: Stuart Dallas Cc: ad...@buskirkgraphics.com; PHP General Subject: Re: [PHP] caching problem On Tue, Jun 28, 2011 at 5:30 PM, Stuart Dallas wrote: > On Tue, Jun 28, 2011 at 4:23 PM, Fatih P. wrote: > >> On Tue, Jun 28, 2011 at 5:12 PM, wrote: >> >> > Faith, >> > >> > I actually did read from the beginning of the message. >> > >> > That does not make sense. >> > PHP files are cached intentionally, the system does not Cache PHP on its >> > own. >> > Sounds to me like you have an issue re-declaring an object or calling >> the >> > right script/path/class/method something. >> > >> > >> > I have never heard of PHP being cached unless it was intentionally >> cached >> > it. Thank god for security reason! >> > HTML output?? Sure all the time helps the browser load the content >> faster. >> > >> > I have a real issue with who ever told you that PHP is being cached, >> > because if that was the case there is SERIOUS security hole in your PHP. >> > I am doubting that. >> > >> > I have cached PHP, it can be done. >> > >> > Are you using APC(Alternative PHP Cache)??? >> > >> > I would not suggest it with complex scripting using classes and methods >> > they are the whole reason NOT to cache. >> > >> > >> > That’s just my opinion. >> > >> > Richard L. Buskirk >> > >> > >> Well, seems you didn't read it carefully even to write my name correctly. >> if >> this is an issue with PHP then it is an >> issue with PHP. AsI said I am using pre-compiled binaries with default >> settings. also mentioned no caching is >> enabled to cache anything. And NO i am not using APC either or something >> else!!! >> > > > Fatih, please explain what you mean by "the code files are being cached. > and modifications in methods are skipped > and not executed." How are you getting the modified files onto the server, > and how are you running the scripts? Are you working directly on the server, > or are you uploading the files to the server via FTP, SCP or some other > mechanism? > > -Stuart > > -- > Stuart Dallas > 3ft9 Ltd > http://3ft9.com/ > OK, this is a development machine, everything is running on it. nothing is being uploaded through ftp, scp or something else. all kind of content caching is disabled. and what I mean by the code files are being cached is: after the modifications, i do get the result which was produced before modification. which shows that the file is not being interpreted by php. how i get to this point that I see errors after restarting the machine which were not there during coding or when i dump an object it doesn't show up anything other than previous content. to recover this situation, either I have to restart httpd which sometimes does work or when it gets more problematic, i have to crush httpd / php on start. and only having this problem on windows machines. sounds funny to most of you but it is happening -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] caching problem
On Tue, Jun 28, 2011 at 5:12 PM, Fatih P. wrote: > On Tue, Jun 28, 2011 at 5:30 PM, Stuart Dallas wrote: > >> Fatih, please explain what you mean by "the code files are being cached. >> and modifications in methods are skipped >> and not executed." How are you getting the modified files onto the server, >> and how are you running the scripts? Are you working directly on the server, >> or are you uploading the files to the server via FTP, SCP or some other >> mechanism? >> >> OK, this is a development machine, everything is running on it. nothing is > being uploaded through ftp, scp or something else. > all kind of content caching is disabled. > > and what I mean by the code files are being cached is: after the > modifications, i do get the result which was produced before modification. > which shows > that the file is not being interpreted by php. how i get to this point that > I see errors after restarting the machine which were not there during coding > or when > i dump an object it doesn't show up anything other than previous content. > > to recover this situation, either I have to restart httpd which sometimes > does work or when it gets more problematic, > i have to crush httpd / php on start. and only having this problem on > windows machines. > > sounds funny to most of you but it is happening > I'm sure it is happening, I don't doubt that, but there's probably a very simple explanation. What browser are you using? Certain older browsers such as IE6 have their own ideas about whether pages should be cached or not. You can usually bypass the browser cache by holding control and/or shift while clicking on the refresh button. Try that next time this happens. Other possibilities include filesystem issues, such that the OS is not seeing that the file has been changed - there are levels of caching on modern operating systems that most people, quite correctly, are not aware of. The likelihood of this being the cause is miniscule. If you're absolutely certain that you are not using any opcode caching (you mentioned that you are using pre-compiled binaries, and it's possible they include APC or similar by default), then I have no idea what's going on beyond what I and others have already suggested. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/
Re: [PHP] caching problem
On Tue, Jun 28, 2011 at 5:30 PM, Stuart Dallas wrote: > On Tue, Jun 28, 2011 at 4:23 PM, Fatih P. wrote: > >> On Tue, Jun 28, 2011 at 5:12 PM, wrote: >> >> > Faith, >> > >> > I actually did read from the beginning of the message. >> > >> > That does not make sense. >> > PHP files are cached intentionally, the system does not Cache PHP on its >> > own. >> > Sounds to me like you have an issue re-declaring an object or calling >> the >> > right script/path/class/method something. >> > >> > >> > I have never heard of PHP being cached unless it was intentionally >> cached >> > it. Thank god for security reason! >> > HTML output?? Sure all the time helps the browser load the content >> faster. >> > >> > I have a real issue with who ever told you that PHP is being cached, >> > because if that was the case there is SERIOUS security hole in your PHP. >> > I am doubting that. >> > >> > I have cached PHP, it can be done. >> > >> > Are you using APC(Alternative PHP Cache)??? >> > >> > I would not suggest it with complex scripting using classes and methods >> > they are the whole reason NOT to cache. >> > >> > >> > That’s just my opinion. >> > >> > Richard L. Buskirk >> > >> > >> Well, seems you didn't read it carefully even to write my name correctly. >> if >> this is an issue with PHP then it is an >> issue with PHP. AsI said I am using pre-compiled binaries with default >> settings. also mentioned no caching is >> enabled to cache anything. And NO i am not using APC either or something >> else!!! >> > > > Fatih, please explain what you mean by "the code files are being cached. > and modifications in methods are skipped > and not executed." How are you getting the modified files onto the server, > and how are you running the scripts? Are you working directly on the server, > or are you uploading the files to the server via FTP, SCP or some other > mechanism? > > -Stuart > > -- > Stuart Dallas > 3ft9 Ltd > http://3ft9.com/ > OK, this is a development machine, everything is running on it. nothing is being uploaded through ftp, scp or something else. all kind of content caching is disabled. and what I mean by the code files are being cached is: after the modifications, i do get the result which was produced before modification. which shows that the file is not being interpreted by php. how i get to this point that I see errors after restarting the machine which were not there during coding or when i dump an object it doesn't show up anything other than previous content. to recover this situation, either I have to restart httpd which sometimes does work or when it gets more problematic, i have to crush httpd / php on start. and only having this problem on windows machines. sounds funny to most of you but it is happening
Re: [PHP] caching problem
On Tue, Jun 28, 2011 at 4:23 PM, Fatih P. wrote: > On Tue, Jun 28, 2011 at 5:12 PM, wrote: > > > Faith, > > > > I actually did read from the beginning of the message. > > > > That does not make sense. > > PHP files are cached intentionally, the system does not Cache PHP on its > > own. > > Sounds to me like you have an issue re-declaring an object or calling the > > right script/path/class/method something. > > > > > > I have never heard of PHP being cached unless it was intentionally cached > > it. Thank god for security reason! > > HTML output?? Sure all the time helps the browser load the content > faster. > > > > I have a real issue with who ever told you that PHP is being cached, > > because if that was the case there is SERIOUS security hole in your PHP. > > I am doubting that. > > > > I have cached PHP, it can be done. > > > > Are you using APC(Alternative PHP Cache)??? > > > > I would not suggest it with complex scripting using classes and methods > > they are the whole reason NOT to cache. > > > > > > That’s just my opinion. > > > > Richard L. Buskirk > > > > > Well, seems you didn't read it carefully even to write my name correctly. > if > this is an issue with PHP then it is an > issue with PHP. AsI said I am using pre-compiled binaries with default > settings. also mentioned no caching is > enabled to cache anything. And NO i am not using APC either or something > else!!! > Fatih, please explain what you mean by "the code files are being cached. and modifications in methods are skipped and not executed." How are you getting the modified files onto the server, and how are you running the scripts? Are you working directly on the server, or are you uploading the files to the server via FTP, SCP or some other mechanism? -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/
Re: [PHP] caching problem
On Tue, Jun 28, 2011 at 5:12 PM, wrote: > Faith, > > I actually did read from the beginning of the message. > > That does not make sense. > PHP files are cached intentionally, the system does not Cache PHP on its > own. > Sounds to me like you have an issue re-declaring an object or calling the > right script/path/class/method something. > > > I have never heard of PHP being cached unless it was intentionally cached > it. Thank god for security reason! > HTML output?? Sure all the time helps the browser load the content faster. > > I have a real issue with who ever told you that PHP is being cached, > because if that was the case there is SERIOUS security hole in your PHP. > I am doubting that. > > I have cached PHP, it can be done. > > Are you using APC(Alternative PHP Cache)??? > > I would not suggest it with complex scripting using classes and methods > they are the whole reason NOT to cache. > > > That’s just my opinion. > > Richard L. Buskirk > > Well, seems you didn't read it carefully even to write my name correctly. if this is an issue with PHP then it is an issue with PHP. AsI said I am using pre-compiled binaries with default settings. also mentioned no caching is enabled to cache anything. And NO i am not using APC either or something else!!!
RE: [PHP] caching problem
Faith, I actually did read from the beginning of the message. That does not make sense. PHP files are cached intentionally, the system does not Cache PHP on its own. Sounds to me like you have an issue re-declaring an object or calling the right script/path/class/method something. I have never heard of PHP being cached unless it was intentionally cached it. Thank god for security reason! HTML output?? Sure all the time helps the browser load the content faster. I have a real issue with who ever told you that PHP is being cached, because if that was the case there is SERIOUS security hole in your PHP. I am doubting that. I have cached PHP, it can be done. Are you using APC(Alternative PHP Cache)??? I would not suggest it with complex scripting using classes and methods they are the whole reason NOT to cache. That’s just my opinion. Richard L. Buskirk -Original Message- From: Stuart Dallas [mailto:stu...@3ft9.com] Sent: Tuesday, June 28, 2011 9:18 AM To: Fatih P. Cc: PHP General Subject: Re: [PHP] caching problem On Tue, Jun 28, 2011 at 1:51 PM, Fatih P. wrote: > > > On Tue, Jun 28, 2011 at 1:52 PM, Stuart Dallas wrote: > >> On Tuesday, 28 June 2011 at 06:57, Fatih P. wrote: >> > On Tue, Jun 28, 2011 at 7:40 AM, Nilesh Govindarajan >> > mailto:cont...@nileshgr.com)>wrote: >> > >> > > On 06/28/2011 10:56 AM, Fatih P. wrote: >> > > > Hi guys, >> > > > >> > > > the code files are being cached. and modifications in methods are >> skipped >> > > > and not executed. is there any parameter that i can pass it from ini >> > > file? >> > > > this has been so annoying for me. restarting apache, windows, etc >> does >> > > not >> > > > even help. im running apache 2.2.19, php ts 5.3.6 on windows 2003 r2 >> > > > any ideas how to avoid this situation? thanks >> > > > >> > > > Fatih >> > > >> > > It seems you have a wrongly configured opcode cache runnning about >> which >> > > you're not aware of. >> > > >> > > -- >> > > Regards, >> > > Nilesh Govindarajan >> > > @nileshgr on twitter/identica >> > basically using default configuration, have not changed anything except >> the >> > path for extensions in php.ini. >> > and there is nothing installed/configured to cache anything. >> >> Since restarting Apache does not help, the problem is obviously outside >> the web server. There are two possibilities I can think of... >> >> * Browser caching >> >> * Proxy caching >> >> See if clearing your browser cache helps. If not then you probably have a >> proxy between you and the server that's caching the content. >> >> -Stuart >> >> -- >> Stuart Dallas >> 3ft9 Ltd >> http://3ft9.com/ >> >> > This is not proxy or browser caching. browser does not receive php code. it > gets output of php code. Well thanks, cos I only started doing this whole webby programmy developy technobabble thing yesterday and I'm still learning the basics!* How do you know that "modifications in methods are skipped and not executed"? By looking at the output shown in your browser? The output that could be cached by proxies and/or your browser? Or are you running them on the command line, in which case some sort of opcode cache is probably the culprit, or you're not running the code you think you are. -Stuart *sarcasm! -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] caching problem
On Tue, Jun 28, 2011 at 1:51 PM, Fatih P. wrote: > > > On Tue, Jun 28, 2011 at 1:52 PM, Stuart Dallas wrote: > >> On Tuesday, 28 June 2011 at 06:57, Fatih P. wrote: >> > On Tue, Jun 28, 2011 at 7:40 AM, Nilesh Govindarajan >> > mailto:cont...@nileshgr.com)>wrote: >> > >> > > On 06/28/2011 10:56 AM, Fatih P. wrote: >> > > > Hi guys, >> > > > >> > > > the code files are being cached. and modifications in methods are >> skipped >> > > > and not executed. is there any parameter that i can pass it from ini >> > > file? >> > > > this has been so annoying for me. restarting apache, windows, etc >> does >> > > not >> > > > even help. im running apache 2.2.19, php ts 5.3.6 on windows 2003 r2 >> > > > any ideas how to avoid this situation? thanks >> > > > >> > > > Fatih >> > > >> > > It seems you have a wrongly configured opcode cache runnning about >> which >> > > you're not aware of. >> > > >> > > -- >> > > Regards, >> > > Nilesh Govindarajan >> > > @nileshgr on twitter/identica >> > basically using default configuration, have not changed anything except >> the >> > path for extensions in php.ini. >> > and there is nothing installed/configured to cache anything. >> >> Since restarting Apache does not help, the problem is obviously outside >> the web server. There are two possibilities I can think of... >> >> * Browser caching >> >> * Proxy caching >> >> See if clearing your browser cache helps. If not then you probably have a >> proxy between you and the server that's caching the content. >> >> -Stuart >> >> -- >> Stuart Dallas >> 3ft9 Ltd >> http://3ft9.com/ >> >> > This is not proxy or browser caching. browser does not receive php code. it > gets output of php code. Well thanks, cos I only started doing this whole webby programmy developy technobabble thing yesterday and I'm still learning the basics!* How do you know that "modifications in methods are skipped and not executed"? By looking at the output shown in your browser? The output that could be cached by proxies and/or your browser? Or are you running them on the command line, in which case some sort of opcode cache is probably the culprit, or you're not running the code you think you are. -Stuart *sarcasm! -- Stuart Dallas 3ft9 Ltd http://3ft9.com/
RE: [PHP] caching problem
If the issue is a caching proxy or browser caching I suggest you look into controlling the page caching header. You can expire the header. // calc an offset of 24 hours $offset = 3600 * 24; // calc the string in GMT not localtime and add the offset $expire = "Expires: " . gmdate("D, d M Y H:i:s", time() + $offset) . " GMT"; //output the HTTP header Header($expire); Just a thought. Richard L. Buskirk -Original Message- From: Stuart Dallas [mailto:stu...@3ft9.com] Sent: Tuesday, June 28, 2011 7:53 AM To: Fatih P. Cc: php-general@lists.php.net Subject: Re: [PHP] caching problem On Tuesday, 28 June 2011 at 06:57, Fatih P. wrote: > On Tue, Jun 28, 2011 at 7:40 AM, Nilesh Govindarajan > mailto:cont...@nileshgr.com)>wrote: > > > On 06/28/2011 10:56 AM, Fatih P. wrote: > > > Hi guys, > > > > > > the code files are being cached. and modifications in methods are skipped > > > and not executed. is there any parameter that i can pass it from ini > > file? > > > this has been so annoying for me. restarting apache, windows, etc does > > not > > > even help. im running apache 2.2.19, php ts 5.3.6 on windows 2003 r2 > > > any ideas how to avoid this situation? thanks > > > > > > Fatih > > > > It seems you have a wrongly configured opcode cache runnning about which > > you're not aware of. > > > > -- > > Regards, > > Nilesh Govindarajan > > @nileshgr on twitter/identica > basically using default configuration, have not changed anything except the > path for extensions in php.ini. > and there is nothing installed/configured to cache anything. Since restarting Apache does not help, the problem is obviously outside the web server. There are two possibilities I can think of... * Browser caching * Proxy caching See if clearing your browser cache helps. If not then you probably have a proxy between you and the server that's caching the content. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] caching problem
On Tuesday, 28 June 2011 at 06:57, Fatih P. wrote: > On Tue, Jun 28, 2011 at 7:40 AM, Nilesh Govindarajan > mailto:cont...@nileshgr.com)>wrote: > > > On 06/28/2011 10:56 AM, Fatih P. wrote: > > > Hi guys, > > > > > > the code files are being cached. and modifications in methods are skipped > > > and not executed. is there any parameter that i can pass it from ini > > file? > > > this has been so annoying for me. restarting apache, windows, etc does > > not > > > even help. im running apache 2.2.19, php ts 5.3.6 on windows 2003 r2 > > > any ideas how to avoid this situation? thanks > > > > > > Fatih > > > > It seems you have a wrongly configured opcode cache runnning about which > > you're not aware of. > > > > -- > > Regards, > > Nilesh Govindarajan > > @nileshgr on twitter/identica > basically using default configuration, have not changed anything except the > path for extensions in php.ini. > and there is nothing installed/configured to cache anything. Since restarting Apache does not help, the problem is obviously outside the web server. There are two possibilities I can think of... * Browser caching * Proxy caching See if clearing your browser cache helps. If not then you probably have a proxy between you and the server that's caching the content. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] caching problem
On Tue, Jun 28, 2011 at 7:40 AM, Nilesh Govindarajan wrote: > On 06/28/2011 10:56 AM, Fatih P. wrote: > > Hi guys, > > > > the code files are being cached. and modifications in methods are skipped > > and not executed. is there any parameter that i can pass it from ini > file? > > this has been so annoying for me. restarting apache, windows, etc does > not > > even help. im running apache 2.2.19, php ts 5.3.6 on windows 2003 r2 > > any ideas how to avoid this situation? thanks > > > > Fatih > > > > It seems you have a wrongly configured opcode cache runnning about which > you're not aware of. > > -- > Regards, > Nilesh Govindarajan > @nileshgr on twitter/identica > > basically using default configuration, have not changed anything except the path for extensions in php.ini. and there is nothing installed/configured to cache anything.
Re: [PHP] caching problem
On 06/28/2011 10:56 AM, Fatih P. wrote: > Hi guys, > > the code files are being cached. and modifications in methods are skipped > and not executed. is there any parameter that i can pass it from ini file? > this has been so annoying for me. restarting apache, windows, etc does not > even help. im running apache 2.2.19, php ts 5.3.6 on windows 2003 r2 > any ideas how to avoid this situation? thanks > > Fatih > It seems you have a wrongly configured opcode cache runnning about which you're not aware of. -- Regards, Nilesh Govindarajan @nileshgr on twitter/identica -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Caching Problem
Oops. There was an extra period at the end there (after PHP_SELF). http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']"); } ?> On the threshold of genius, Jed Verity wrote: > Hi, Roland, > > There might be a better way to do this, but you could try to use the > header() function after your upload takes place to redirect the browser to > the same page, using GET. Something like... > > if ($HTTP_POST_VARS['submit'] == "submit") { > then upload the file... > header("Location: http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']."); > } > ?> > > Or something like that. HTH, > Jed > > On the threshold of genius, Roland Swingler wrote: > >> Hi >> >> I have a problem with caching on IE 5.1.4 on Mac Os X. (PHP 4.0.5) >> >> The page I want to use is a simple file upload page that works by: >> >> > if ($HTTP_POST_VARS['submit'] == "submit") { >> then upload the file... >> } >> ?> >> Rest of document. >> >> The form action returns to the same page (to allow you to upload another >> file). >> >> This works fine, but if you press the refresh btn, the file keeps uploading >> pictures. If you click in the address bar & press return, this does not >> happen. >> >> I have included the http headers to prevent caching as described in the >> documentation, but this hasn't seemed to work. >> >> Is this a quirk of the browser/os combination or is there something i'm >> missing. >> >> TIA >> >> Roland >> > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Caching Problem
Use header("Location: page.php"); to redirect the browser, you should allways do it after a post that changes or adds or deletes some data on the server. Roland Swingler wrote: >Hi > >I have a problem with caching on IE 5.1.4 on Mac Os X. (PHP 4.0.5) > >The page I want to use is a simple file upload page that works by: > >if ($HTTP_POST_VARS['submit'] == "submit") { > then upload the file... >} >?> >Rest of document. > >The form action returns to the same page (to allow you to upload another file). > >This works fine, but if you press the refresh btn, the file keeps uploading pictures. >If you click in the address bar & press return, this does not happen. > >I have included the http headers to prevent caching as described in the >documentation, but this hasn't seemed to work. > >Is this a quirk of the browser/os combination or is there something i'm missing. > >TIA > >Roland > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Caching Problem
Hi, Roland, There might be a better way to do this, but you could try to use the header() function after your upload takes place to redirect the browser to the same page, using GET. Something like... http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']."); } ?> Or something like that. HTH, Jed On the threshold of genius, Roland Swingler wrote: > Hi > > I have a problem with caching on IE 5.1.4 on Mac Os X. (PHP 4.0.5) > > The page I want to use is a simple file upload page that works by: > > if ($HTTP_POST_VARS['submit'] == "submit") { > then upload the file... > } > ?> > Rest of document. > > The form action returns to the same page (to allow you to upload another > file). > > This works fine, but if you press the refresh btn, the file keeps uploading > pictures. If you click in the address bar & press return, this does not > happen. > > I have included the http headers to prevent caching as described in the > documentation, but this hasn't seemed to work. > > Is this a quirk of the browser/os combination or is there something i'm > missing. > > TIA > > Roland > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php