Re: [PHP] php 4 & php 5

2005-03-05 Thread Rasmus Lerdorf
Richard Lynch wrote: timothy johnson wrote: Is there a way to install two version of php on the same machine, and use them for two different users? Option 1: Install two copies of Apache, with different httpd.conf files, on two different ports. Somebody gets stuck using http://example.com:81 (or a

[PHP] warning & question about mysql sessions & concurrency

2005-03-05 Thread Josh Whiting
I've been trying to switch to MySQL-based session storage instead of the native PHP session storage. In doing so, I've run into a lot of code on the web that exhibits a serious flaw regarding concurrent requests from the same client. All the code I've seen has glossed over the need to lock the

[PHP] unexplainable - page generation time class

2005-03-05 Thread James Williams
Howdy! I've made a class which simply determines the page generation time of a php script... After pretty much an hour of straight examining the code and trying tons of different things, no good has come of it, however I can't find an error... anywhere. class page_gen { // // PR

Re: [PHP] cache engine

2005-03-05 Thread Mark Charette
Evert - Rooftop Solutions wrote: Check it out, is in old article, but it says "|shm| -- The |shm| container stores the cached data in the shared memory. Benchmarks indicate that the current implementation of this container is much slower than the |file| container." Which, of course, is miles awa

Re: [PHP] cache engine

2005-03-05 Thread Evert - Rooftop Solutions
Mark Charette wrote: Evert - Rooftop Solutions wrote: I heard that shared memory is actually slower than writing and reading a file and it is not available on windows systems. Hmmm ... that's an interesting thing you heard concerning shared memory. Care to share _who_ told you that? I'd like to

Re: [PHP] cache engine

2005-03-05 Thread James Williams
Mark Charette wrote: Evert - Rooftop Solutions wrote: I heard that shared memory is actually slower than writing and reading a file and it is not available on windows systems. Hmmm ... that's an interesting thing you heard concerning shared memory. Care to share _who_ told you that? I'd like to

Re: [PHP] cache engine

2005-03-05 Thread Mark Charette
Evert - Rooftop Solutions wrote: I heard that shared memory is actually slower than writing and reading a file and it is not available on windows systems. Hmmm ... that's an interesting thing you heard concerning shared memory. Care to share _who_ told you that? I'd like to make sure I don't hir

Re: [PHP] cache engine

2005-03-05 Thread Evert - Rooftop Solutions
Chris Smith wrote: I have seen some people using stornig cached items in shared memory. This is explained in some detail here: http://www.danga.com/memcached/ I heard that shared memory is actually slower than writing and reading a file and it is not available on windows systems. There are PHP

Re: [PHP] cache engine

2005-03-05 Thread Chris Smith
Evert - Rooftop Solutions wrote: I have written an extensive web application frameworks, and I keep seeing my execution time and memory-usage growing. Right now it is not a problem, but before it get's out of hands I will need to create a good cache engine. My cache engine requires that I can ca

Re: [PHP] Comments and performance

2005-03-05 Thread Matthew Fonda
Hello, Comments should not affect speed or performance at. Commenting is a good thing, and you should continue to do it. :) On Sat, 2005-03-05 at 13:15, Chris Smith wrote: > Hi, > > Probably a silly question, but when I am writing php scripts > (specifically large classes), I tend to write just

[PHP] cache engine

2005-03-05 Thread Evert - Rooftop Solutions
Hi people, I have written an extensive web application frameworks, and I keep seeing my execution time and memory-usage growing. Right now it is not a problem, but before it get's out of hands I will need to create a good cache engine. My cache engine requires that I can cache method results, ba

[PHP] Comments and performance

2005-03-05 Thread Chris Smith
Hi, Probably a silly question, but when I am writing php scripts (specifically large classes), I tend to write just as many comments as lines of code (for my own reference). Does this affect _execution performance_ of the scripts at all i.e. are they precompiled/interpreted and cached without c

[PHP] stream_set_timeout & get_headers (PHP5)

2005-03-05 Thread Chris
I'm requesting some remote files to cache on my own server and performing a get_headers() first to find out the file type, since I don't always know what it is. I've discovered some timeout problems with the remote server sometimes and my own script would end up with a fatal error because th

[PHP] Re: How can i calculate total process time?

2005-03-05 Thread M. Sokolewicz
JoShQuNe wrote: Hi, i wanna ask if anybody knows how to calculate the total process time. I guess there exists a function to perform but i dont know which one it is. I mean if u c any PHP Nuke site, it says this page is produced in seconds. I made some codes it calculates but i dont believe

[PHP] How can i calculate total process time?

2005-03-05 Thread JoShQuNe \(TR\)
Hi, i wanna ask if anybody knows how to calculate the total process time. I guess there exists a function to perform but i dont know which one it is. I mean if u c any PHP Nuke site, it says this page is produced in seconds. I made some codes it calculates but i dont believe that it is equa

[PHP] Re: Database engine in PHP

2005-03-05 Thread Gerben
Thanks Manuel. That's excactly what I was looking for. This will save me a lot of time. Thanks a lot. greeting Gerben "Manuel Lemos" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > > on 03/04/2005 03:45 PM Gerben said the following: >> I was wondering if there is any DB

Re: [PHP] swaping mysql table values

2005-03-05 Thread Jochem Maas
Dave Carrera wrote: Hi List, I have a table like the diag below: ID Name Pos 1 jig 1 2 pig 2 3 dig 3 4 fig 4 What i am trying to do is upon click to change pos 1 to pos 2 and pos 2 to pos 1so that i can manage the position i show my list. Can someone throw me some nuggets of logic wisdom

[PHP] swaping mysql table values

2005-03-05 Thread Dave Carrera
Hi List, I have a table like the diag below: ID Name Pos 1 jig 1 2 pig 2 3 dig 3 4 fig 4 What i am trying to do is upon click to change pos 1 to pos 2 and pos 2 to pos 1so that i can manage the position i show my list. Can someone throw me some nuggets of logic wisdom as my searchs are c