[PHP] Re: cache xml objects in php5

2005-09-27 Thread Kevin Wang
Hi Rasmus, Thanks a bunch for your kind help! Yes, you got exactly what I meant. I have my own classes to hold all the xml related data, so it might be a bit too difficult for me to convert my existing applications to use nested array instead. I tried to use apc to store nested array though,

Re: [PHP] Re: cache xml objects in php5

2005-09-27 Thread Rasmus Lerdorf
I guess to only way to solve my problem is to write my own extension to initialize my objects in my own memory (even can keep them in local memory, as long as they are persistent across requests). You mentioned to write a MINIT hook; could you give some more details? Is there any

[PHP] Re: Cache

2005-05-16 Thread Jason Barnett
Evert | Rooftop wrote: Hi, I'm developing a cache system. Which works in pseude code, like this: class Cache { function Fetchdata($id1,$id2,$id3) { $id = md5($id1 . $id2 . $id3); if ($this-DataIsExpired($id)) return false; else return unserialize(file_get_contents($id)); } function

Re: [PHP] Re: Cache

2005-05-16 Thread Evert | Rooftop
Jason Barnett wrote: * Is file_get_contents the fastest way to open the file? AFAIK yes it is since it takes advantage of memory mapping (where possible). * Is serialize the fastest way to serialize ;) ? Not sure. * Are there any other things I should consider? (I'm aware of file-locking

Re: [PHP] Re: Cache

2005-05-16 Thread Jason Barnett
... H... well, file_get_contents() doesn't lock the file so I'm interested in how you're accomplishing this feat. Perhaps you're creating a temporary directory (atomic IIRC) for the filename and then flocking that? I dunno, I hate race conditions. I was to fast with that, I didn't look

[PHP] Re: Cache control

2005-04-26 Thread William Stokes
Talkin' to myself... does this solve the issue? header (Cache-Control: no-cache); -Will William Stokes [EMAIL PROTECTED] kirjoitti viestissä:[EMAIL PROTECTED] Hello, I have an web application that checks users rights to specific parts of the apllication at the beginning of each page.

RE: [PHP] Re: Cache control

2005-04-26 Thread Mark Rees
To: php-general@lists.php.net Subject: [PHP] Re: Cache control Talkin' to myself... does this solve the issue? header (Cache-Control: no-cache); -Will William Stokes [EMAIL PROTECTED] kirjoitti viestissä:[EMAIL PROTECTED] Hello, I have an web application that checks users rights to specific

Re: [PHP] Re: Cache control

2005-04-26 Thread The Disguised Jedi
I think I need to prevent the pages from beeing cached. How this can be done? I'm totally inexperinced with this stuff. Look at the examples and user notes in the header statement in the manual. http://php.net/function.header That should help you, they have a whole section on how to stop

[PHP] Re: cache class

2005-03-22 Thread Jeremiah Fisher
I usually encounter this when there's an error of some sort. Tail your error log and see if the apache child thread is seg faulting (if you're using httpd). The web server may still be up, but your code is causing the particular connection to fail. Because the connection just dies, the browser

Re: [PHP] Re: cache class

2005-03-22 Thread Mister Jack
Many thanks for all the answers. I've checked that I was saving the right file (I even think about it !), and even if I'm using Templeet (sort of smarty http://templeet.org ) i've disabled all cache, and this code is only PHP not template-language. I've checked the error.log, and it just said that

[PHP] Re: Cache

2004-08-16 Thread Torsten Roehr
Octavian Rasnita [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all, I want to create an html cache of a page, like when that page is saved to the disk and let the visitors download that static page and not a dynamic one. Of course, a dynamic PHP program will load that static

[PHP] Re: Cache Question

2003-08-18 Thread Josh Whiting
this is off the topic of caching, but is related and could have an impact on the issue: using a .php instead of a .mp3 would seem like a good idea, but this ties into a problem i'm having right now with streaming mp3s using, in my case, the flash player plugin to stream and play the file. it

[PHP] Re: Cache Question

2003-08-14 Thread Ivo Fokkema
Hi Tony, Chris explained a lot about this... I'm not an expert on this, but you might want to give a try to embed something like : embed src='mp3.php?mp3=filename' autostart=true; And then let mp3.php send all of the no-cache headers together with the contents of the filename.mp3. It might

[PHP] Re: cache

2003-06-12 Thread Dustin Pate
Diana Castillo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] what code can I put at the begining of a php page so that the result from the cache is never shown ? The following code should eliminate the cache for every broswer out there. ?php header(Expires: Mon, 26 Jul 1997

[PHP] Re: Cache Control

2001-11-21 Thread Richard Lynch
Jeff Sittler wrote: In ASP, I ahve used: % Response.CacheControl = no-cache Response.AddHeader Pragma, no-cache Response.Expires = -1 if Session(svUsername) = then response.redirect ../login/accessDenied.asp % If you still have that site in ASP around, look at the header output