Re: [PHP] caching problem

2011-06-28 Thread Stuart Dallas
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 bei

Re: [PHP] caching problem

2011-06-28 Thread Micky Hulse
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 g

Re: [PHP] caching problem

2011-06-28 Thread Fatih P.
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 ru

Re: [PHP] caching problem

2011-06-28 Thread Steve Staples
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 >

RE: [PHP] caching problem

2011-06-28 Thread admin
...@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

Re: [PHP] caching problem

2011-06-28 Thread Stuart Dallas
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

Re: [PHP] caching problem

2011-06-28 Thread Fatih P.
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 inte

Re: [PHP] caching problem

2011-06-28 Thread Stuart Dallas
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. > > Sound

Re: [PHP] caching problem

2011-06-28 Thread Fatih P.
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 >

RE: [PHP] caching problem

2011-06-28 Thread admin
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: > >> O

Re: [PHP] caching problem

2011-06-28 Thread Stuart Dallas
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

RE: [PHP] caching problem

2011-06-28 Thread admin
("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.

Re: [PHP] caching problem

2011-06-28 Thread Stuart Dallas
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 > > >

Re: [PHP] caching problem

2011-06-27 Thread Fatih P.
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

Re: [PHP] caching problem

2011-06-27 Thread Nilesh Govindarajan
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

Re: [PHP] Caching

2009-04-11 Thread Richard Heyes
> Hey! About  " Header set Expires "Thu, 15 Apr 2010 20:00:00 GMT" " > The problem is the files might change, lets say - every week. How can I use > " Header set Expires "Thu, 15 Apr 2010 20:00:00 GMT"" to something like > > Header set Expires "today plus week" > > (or X seconds / y minutes / etc..

Re: [PHP] Caching

2009-04-10 Thread דניאל דנון
Hey! About " Header set Expires "Thu, 15 Apr 2010 20:00:00 GMT" " The problem is the files might change, lets say - every week. How can I use " Header set Expires "Thu, 15 Apr 2010 20:00:00 GMT"" to something like Header set Expires "today plus week" (or X seconds / y minutes / etc...) On Fri,

Re: [PHP] Caching

2009-04-10 Thread Richard Heyes
Hi, > I started caching some of the static files on my application, > I was wondering - Lets say I have an article on my website and I *want* to > cache it. How will I cache it AND will be able to make my visitors > "re-cache" it if it has been changed? Work from the last modified date/time on th

Re: [PHP] Caching and Optimization

2008-06-05 Thread Nathan Nobbe
On Thu, Jun 5, 2008 at 10:16 AM, VamVan <[EMAIL PROTECTED]> wrote: > Hello All, > > Today my question is about the all important topic "Web Optimization" > > What kind of caching mechanisms can I use for Mysql Queries? mysql has its own caching support, worth looking into. you can also cache qu

Re: [PHP] Caching options - trunkcache?

2007-03-12 Thread Richard Lynch
APC is getting rolled into PHP 6, allegedly. So that's kind of a no-brainer to choose, imho, as then you can be forwards-compatible with something that turns into the PHP Dev Teams' maintenance work instead of your own. Zend Cache may still be faster, as they got the jump on the PHP code caching

Re: [PHP] Caching options - trunkcache?

2007-03-12 Thread Robert Cummings
On Mon, 2007-03-12 at 14:17 +0100, Merlin wrote: > clive schrieb: > > Merlin wrote: > > > >> I am looking for a replacement of php trunkcache. > > I think you meant turck mmcache? > > > > have a look at these: > > > > http://eaccelerator.net (derivative of mmcache last release: 2006/02/15) *CO

Re: [PHP] Caching options - trunkcache?

2007-03-12 Thread Merlin
clive schrieb: Merlin wrote: I am looking for a replacement of php trunkcache. I think you meant turck mmcache? have a look at these: http://eaccelerator.net (derivative of mmcache last release: 2006/02/15) http://www.php-accelerator.co.uk/ thanx I tried php-accelerator. Lets see if this

Re: [PHP] Caching options - trunkcache?

2007-03-12 Thread clive
Merlin wrote: I am looking for a replacement of php trunkcache. I think you meant turck mmcache? have a look at these: http://eaccelerator.net (derivative of mmcache last release: 2006/02/15) http://www.php-accelerator.co.uk/ -- Regards, Clive. Real Time Travel Connections {No electrons

Re: [PHP] Caching options - trunkcache?

2007-03-12 Thread Jochem Maas
Merlin wrote: > Hi there, > > I am looking for a replacement of php trunkcache. As far as I can see, > there is no further development and I had to take it offline due a > system update and compatibility issues. > > What would you guys recommend for a free caching system on a LAMP > environment r

Re: [PHP] caching parsed XML files as DOM objects in memory

2005-10-10 Thread Petr Smith
I'm writing template library based on XML. But it's not very efficient to create new DomDocument, load XML template, process it and show on every page hit. XML parsing is not very fast, and because I'm parsing XHTML with entities, all DTD's are parsed too. I thought about something similar to java

Re: [PHP] caching parsed XML files as DOM objects in memory

2005-10-07 Thread Richard Lynch
On Wed, October 5, 2005 8:11 am, Petr Smith wrote: > is it possible to cache parsed XML files somehow? I think this is the wrong question... I mean, OF COURSE, it's possible to cache them SOMEHOW. You could toss them in your file system, or a database, insert a machine with squid on it into the

Re: [PHP] caching parsed XML files as DOM objects in memory

2005-10-06 Thread Petr Smith
it's not working at all. And it could never work. I don't think it's funny to write false advices to people "every other week". I've installed APC cache, tried to save XML. It was not working. apc_fetch returned NULL every time. [snip] When I looked into documentation for APC - there is this se

Re: [PHP] caching parsed XML files... FALSE advice, still not working

2005-10-06 Thread Jasper Bryant-Greene
Petr Smith wrote: it's not working at all. And it could never work. I don't think it's funny to write false advices to people "every other week". I've installed APC cache, tried to save XML. It was not working. apc_fetch returned NULL every time. [snip] When I looked into documentation for A

Re: [PHP] caching parsed XML files... FALSE advice, still not working

2005-10-06 Thread Petr Smith
Petr Smith wrote: Jasper Bryant-Greene wrote: Petr Smith wrote: is it possible to cache parsed XML files somehow? I'm writing template library based on XML. But it's not very efficient to create new DomDocument, load XML template, process it and show on every page hit. XML parsing is not ve

Re: [PHP] caching parsed XML files as DOM objects in memory

2005-10-05 Thread Petr Smith
Jasper Bryant-Greene wrote: Petr Smith wrote: is it possible to cache parsed XML files somehow? I'm writing template library based on XML. But it's not very efficient to create new DomDocument, load XML template, process it and show on every page hit. XML parsing is not very fast, and because

Re: [PHP] caching parsed XML files as DOM objects in memory

2005-10-05 Thread Jasper Bryant-Greene
Petr Smith wrote: is it possible to cache parsed XML files somehow? I'm writing template library based on XML. But it's not very efficient to create new DomDocument, load XML template, process it and show on every page hit. XML parsing is not very fast, and because I'm parsing XHTML with entit

RE: [PHP] caching parsed XML files as DOM objects in memory

2005-10-05 Thread Daevid Vincent
Sadly I thought of doing the same thing only to have my face crapped on by this extreme lameness: http://www.php.net/manual/en/ref.session.php "Some types of data can not be serialized thus stored in sessions. It includes resource variables or objects with circular references (i.e. objects which

Re: [PHP] Caching Database Information

2004-08-25 Thread raditha dissanayake
Paul Higgins wrote: Hello all, I have some questions regarding caching information with PHP. I was thinking that I might cache all information that won't be changing for long periods of time...possibly only once a day or so, instead of querying the database for information every time. My quest

RE: [PHP] Caching Database Information

2004-08-25 Thread Greg Donald
On Wed, 2004-08-25 at 16:32, Scott Hyndman wrote: > I've found that caching LARGE datasets can be really useful. Filesystem > access is blazing fast, and at least in my case, I've found it to be > significantly faster than the time it takes to process a query and > return the dataset. > > Too much

Re: [PHP] Caching Database Information

2004-08-25 Thread Greg Donald
On Wed, 2004-08-25 at 14:52, Paul Higgins wrote: > Hello all, > > I have some questions regarding caching information with PHP. I was > thinking that I might cache all information that won't be changing for long > periods of time...possibly only once a day or so, instead of querying the > data

Re: [PHP] caching program

2003-09-14 Thread Curt Zirzow
* Thus wrote Andrea Tricco ([EMAIL PROTECTED]): > For the images that don't contain "http://"; my program is already able to > get them from the web server. > In other cases, I have to determine the name of the directory where the html > page is located. > Thus, the equivocal paths are the problem,

Re: [PHP] caching program...

2003-09-13 Thread Curt Zirzow
* Thus wrote Andrea Tricco ([EMAIL PROTECTED]): > Hi, Hello > > I'm using the function "file_get_contents()" to replicate the content of a > remote html page on my server. > > But, the function file_get_contents() works even when the name of the file > is not specified. For example: > > "http:

Re: [PHP] caching program

2003-09-12 Thread Ryan Gibson
On 17/9/03 12:18 pm, "Andrea Tricco" <[EMAIL PROTECTED]> wrote: > Thus, the equivocal paths are the problem, for example: > > www.php.net/manual/it/index.php > > www.php.net/manual/it/ > For the above examples the url is the string up to the last '/' char (as long as the string after the '/' ch

Re: [PHP] caching program

2003-09-12 Thread Raditha Dissanayake
once upon a long ago someone (i belive his name is Hrvoje Niksic) wrote a program called wget so that people do not have to do all this :-) Andrea Tricco wrote: Hi, I'm using the function "file_get_contents()" to replicate the content of a remote html page on my server. But, the function file_ge

Re: [PHP] caching program

2003-09-12 Thread Andrea Tricco
the path www.php.net/manual/it/ Best regards. Andrea - Original Message - From: "Andrea Tricco" <[EMAIL PROTECTED]> To: "php-general" <[EMAIL PROTECTED]> Sent: Wednesday, September 17, 2003 1:11 PM Subject: Re: [PHP] caching program > For the images t

Re: [PHP] caching program

2003-09-12 Thread Andrea Tricco
m: "Ryan Gibson" <[EMAIL PROTECTED]> To: "Andrea Tricco" <[EMAIL PROTECTED]>; "php-general" <[EMAIL PROTECTED]> Sent: Friday, September 12, 2003 12:26 PM Subject: Re: [PHP] caching program > You could pull out all the img src attributes and if they do

Re: [PHP] caching program

2003-09-12 Thread Ryan Gibson
You could pull out all the img src attributes and if they don't contain "http://"; then prepeand the address of te page then download otherwise just downlocad the url, but to get the page to work in the new location you may have to replace the img src attributes Ryan Gibson --- [EMAIL PROT

Re: [PHP] caching program...

2003-09-12 Thread Marek Kilimajer
No way, it might be anything from apache's DirectoryIndex directive. Browsers don't know that either. Andrea Tricco wrote: Hi, I'm using the function "file_get_contents()" to replicate the content of a remote html page on my server. But, the function file_get_contents() works even when the na

Re: [PHP] caching question

2003-07-19 Thread Curt Zirzow
Jean-Christian IMbeault <[EMAIL PROTECTED]> wrote: > I am using Apache 1.3.27 and PHP 4.3.3.RC1 and someone has told me that > my web page cannot be cached but I cannot figure out why. My friend > tells me my pages all keep sending this in their headers: > > Cache-Control: post-check=0, must-rev

RE: [PHP] caching variables and preloading functions

2003-06-02 Thread Lance Lovette
If you are not running PHP under a Windows platform and can compile extensions into PHP the most efficient way to solve problem #2 may be with a PHP extension I developed. It handles constants and provides a type of persistent variable too. It has been immensely useful for my projects. http://pwee

Re: [PHP] Caching Problem

2002-09-04 Thread Jed Verity
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 upl

Re: [PHP] Caching Problem

2002-09-04 Thread Marek Kilimajer
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

Re: [PHP] Caching Problem

2002-09-04 Thread Jed Verity
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

Re: [PHP] Caching in php?

2002-02-06 Thread Jeff Bearer
There is Zend Cache, it expensive and you have to pay per processor. That drove folks to develop APC (Alternitive PHP Cache) which is open source. http://apc.communityconnect.com/ They take the PHP source and compile it into machine code and stores that code, which saves porcessor overhead when t

Re: [PHP] Caching in php?

2002-02-06 Thread Wolfram Kriesing
> is this possible using php? what can i do to use > caching on my website which is totally database > driven? try PEAR::Cache http://pear.php.net -- Wolfram -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] caching and IE 5

2001-08-09 Thread Karl Phillipson
Line: 0207 693 8318 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 09 August 2001 10:37 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] caching and IE 5 Try this works for me - try loading www.shanghaiguide.com/main/index.php3 - should do

RE: [PHP] caching and IE 5

2001-08-09 Thread Lawrence . Sheed
Try this works for me - try loading www.shanghaiguide.com/main/index.php3 - should do time, and display a different image every time. cheers, lawrence. -Original Message- From: Karl Phillipson [mailto:[EMAIL PROTECTED]] Sent: August 9, 2001 5:21 PM To: '[EMAIL PROTECTED]' Subjec

Re: [PHP] caching and IE 5

2001-08-09 Thread Daniel James
On Thu, 9 Aug 2001, Karl Phillipson wrote: > Is anyone else having fun and games with IE 5.0 and caching? > > I have the no-cache code (below) before anything else in my index file. > Following that an include file is pulled in that has a form with a text > input field that echos the date and t

Re: [PHP] caching

2001-07-04 Thread Jon Yaggie
It seems still not to work. i have tried all the header options mentioned. adding a query string is out of the option I am using javascript and it dont like that stuff. and my browser still caches everything and drives me nuts. maybe i am putting it in the wrong file? but i really cant ima

Re: [PHP] caching

2001-07-03 Thread Jay Paulson
This is what I use for the header information.. I don't know if it will work for an image or not but it works nicely for text fields that are dynamically populated.. anyway if you aren't adding this extra little bit at the end of the header function you might want to give it a shot... header ("Ca