Re: [PHP-DEV] Apache handler with Multiple PHP versions

2007-07-17 Thread Arnold Daniels
Hi, Sorry for this late reaction, but I was away for a few days. We (as ISP) have solved this by running multiple instanced of Apache. This way you can switch the IP in DNS to switch between PHP versions. You only need 1 install of Apache and do not need to copy/move any files while switching. A

Re: [PHP-DEV] Apache handler with Multiple PHP versions

2007-07-14 Thread Tijnema
On 7/14/07, Rasmus Lerdorf <[EMAIL PROTECTED]> wrote: Tijnema wrote: > On 7/14/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: >> > The Apache2handler SAPI should be loaded first, and read the very >> > first line of the PHP script to determine if a version is specified >> > there. If not, the

Re: [PHP-DEV] Apache handler with Multiple PHP versions

2007-07-14 Thread Larry Garfield
On Saturday 14 July 2007, Tijnema wrote: > > So from a tiny non-representative sample, I'm looking at about 2 out > > of 6 webhosts I've experienced. > > > > YMMV > > I never saw a shared host with more than one PHP version installed > actually, probably becaues they were all with Apache and not w

Re: [PHP-DEV] Apache handler with Multiple PHP versions

2007-07-14 Thread Rasmus Lerdorf
Rasmus Lerdorf wrote: > Not to sound too elitist here, and this is directed just at you Argh! That should of course have been, "this isn't directed just at you..." -Rasmus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Apache handler with Multiple PHP versions

2007-07-14 Thread Rasmus Lerdorf
Tijnema wrote: > On 7/14/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: >> > The Apache2handler SAPI should be loaded first, and read the very >> > first line of the PHP script to determine if a version is specified >> > there. If not, the handler needs to load its default PHP version. If >> > i

Re: [PHP-DEV] Apache handler with Multiple PHP versions

2007-07-14 Thread Tijnema
On 7/14/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > The Apache2handler SAPI should be loaded first, and read the very > first line of the PHP script to determine if a version is specified > there. If not, the handler needs to load its default PHP version. If > it is specified, it should t

Re: [PHP-DEV] Apache handler with Multiple PHP versions

2007-07-14 Thread Tijnema
On 7/14/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Wed, July 11, 2007 9:02 pm, chris# wrote: >> Getting 2 PHP modules to co-exist without tromping on each others' >> symbols is, I think, the show-stopper... >> >> It was possible to have PHP3 and PHP4 both as modules, I think, but >> that was

Re: [PHP-DEV] Apache handler with Multiple PHP versions

2007-07-14 Thread Richard Lynch
On Wed, July 11, 2007 9:02 pm, chris# wrote: >> Getting 2 PHP modules to co-exist without tromping on each others' >> symbols is, I think, the show-stopper... >> >> It was possible to have PHP3 and PHP4 both as modules, I think, but >> that was an anomoly? > So which one of the developers broke thi

Re: [PHP-DEV] Apache handler with Multiple PHP versions

2007-07-14 Thread Stanislav Malyshev
The Apache2handler SAPI should be loaded first, and read the very first line of the PHP script to determine if a version is specified there. If not, the handler needs to load its default PHP version. If it is specified, it should try to load that version, and if it couldn't find or load that versi

Re: [PHP-DEV] Apache handler with Multiple PHP versions

2007-07-13 Thread Gaetano Giunta
On 7/12/07, chris# <[EMAIL PROTECTED]> wrote: On Thu, 12 Jul 2007 11:38:44 +0200, Tijnema <[EMAIL PROTECTED]> wrote: > Hello Richard, > > On 7/12/07, Richard Lynch <[EMAIL PROTECTED]> wrote: >> On Wed, July 11, 2007 6:13 pm, Tijnema wrote: >> > On 7/12/07, Jani Taskinen <[EMAIL PROTECTED]> wro

Re: [PHP-DEV] Apache handler with Multiple PHP versions

2007-07-12 Thread Tijnema
On 7/12/07, Tijnema <[EMAIL PROTECTED]> wrote: On 7/12/07, chris# <[EMAIL PROTECTED]> wrote: > > > > On Thu, 12 Jul 2007 11:38:44 +0200, Tijnema <[EMAIL PROTECTED]> wrote: > > Hello Richard, > > > > On 7/12/07, Richard Lynch <[EMAIL PROTECTED]> wrote: > >> On Wed, July 11, 2007 6:13 pm, Tijnema w

Re: [PHP-DEV] Apache handler with Multiple PHP versions

2007-07-12 Thread chris#
On Thu, 12 Jul 2007 13:41:16 +0200, Tijnema <[EMAIL PROTECTED]> wrote: > On 7/12/07, chris# <[EMAIL PROTECTED]> wrote: >> >> >> >> On Thu, 12 Jul 2007 11:38:44 +0200, Tijnema <[EMAIL PROTECTED]> wrote: >> > Hello Richard, >> > >> > On 7/12/07, Richard Lynch <[EMAIL PROTECTED]> wrote: >> >> On We

Re: [PHP-DEV] Apache handler with Multiple PHP versions

2007-07-12 Thread Tijnema
On 7/12/07, chris# <[EMAIL PROTECTED]> wrote: On Thu, 12 Jul 2007 11:38:44 +0200, Tijnema <[EMAIL PROTECTED]> wrote: > Hello Richard, > > On 7/12/07, Richard Lynch <[EMAIL PROTECTED]> wrote: >> On Wed, July 11, 2007 6:13 pm, Tijnema wrote: >> > On 7/12/07, Jani Taskinen <[EMAIL PROTECTED]> wro

Re: [PHP-DEV] Apache handler with Multiple PHP versions

2007-07-12 Thread chris#
On Thu, 12 Jul 2007 11:38:44 +0200, Tijnema <[EMAIL PROTECTED]> wrote: > Hello Richard, > > On 7/12/07, Richard Lynch <[EMAIL PROTECTED]> wrote: >> On Wed, July 11, 2007 6:13 pm, Tijnema wrote: >> > On 7/12/07, Jani Taskinen <[EMAIL PROTECTED]> wrote: >> >> A lot easier (and works already) is t

Re: [PHP-DEV] Apache handler with Multiple PHP versions

2007-07-12 Thread chris#
On Wed, 11 Jul 2007 20:43:06 -0700, Rasmus Lerdorf <[EMAIL PROTECTED]> wrote: > chris# wrote: >>> It was possible to have PHP3 and PHP4 both as modules, I think, but >>> that was an anomoly? >> So which one of the developers broke this /feature/ in 5? ;) > > This wasn't supported on all platfor

Re: [PHP-DEV] Apache handler with Multiple PHP versions

2007-07-12 Thread Derick Rethans
On Thu, 12 Jul 2007, Tijnema wrote: > On 7/12/07, Richard Lynch <[EMAIL PROTECTED]> wrote: > > > Other problems: > > > > Getting 2 PHP modules to co-exist without tromping on each others' > > symbols is, I think, the show-stopper... > > Both modules are different files, and only one will be dyna

Re: [PHP-DEV] Apache handler with Multiple PHP versions

2007-07-12 Thread Jani Taskinen
On Wed, 2007-07-11 at 20:43 -0700, Rasmus Lerdorf wrote: > chris# wrote: > >> It was possible to have PHP3 and PHP4 both as modules, I think, but > >> that was an anomoly? > > So which one of the developers broke this /feature/ in 5? ;) > > This wasn't supported on all platforms in 4 either becaus

Re: [PHP-DEV] Apache handler with Multiple PHP versions

2007-07-12 Thread Tijnema
On 7/12/07, Guilherme Blanco <[EMAIL PROTECTED]> wrote: Hi Tijnema, I think here is something that might interest you: http://www.phpclasses.org/browse/package/3472.html Regards, Hello Guilherme, This comes quite close to my idea, except that this does only uncomment specfic sections that

Re: [PHP-DEV] Apache handler with Multiple PHP versions

2007-07-12 Thread Tijnema
Hello Richard, On 7/12/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Wed, July 11, 2007 6:13 pm, Tijnema wrote: > On 7/12/07, Jani Taskinen <[EMAIL PROTECTED]> wrote: >> A lot easier (and works already) is to install PHP as CGI/FastCGI >> (one version or all of them, one can be module of cours

Re: [PHP-DEV] Apache handler with Multiple PHP versions

2007-07-11 Thread Rasmus Lerdorf
chris# wrote: >> It was possible to have PHP3 and PHP4 both as modules, I think, but >> that was an anomoly? > So which one of the developers broke this /feature/ in 5? ;) This wasn't supported on all platforms in 4 either because it relied on the ability to created versioned shared libs. It was

Re: [PHP-DEV] Apache handler with Multiple PHP versions

2007-07-11 Thread chris#
On Wed, 11 Jul 2007 19:25:32 -0500 (CDT), "Richard Lynch" <[EMAIL PROTECTED]> wrote: > On Wed, July 11, 2007 6:13 pm, Tijnema wrote: >> On 7/12/07, Jani Taskinen <[EMAIL PROTECTED]> wrote: >>> A lot easier (and works already) is to install PHP as CGI/FastCGI >>> (one version or all of them, one

Re: [PHP-DEV] Apache handler with Multiple PHP versions

2007-07-11 Thread chris#
On Thu, 12 Jul 2007 01:13:33 +0200, Tijnema <[EMAIL PROTECTED]> wrote: > On 7/12/07, Jani Taskinen <[EMAIL PROTECTED]> wrote: >> A lot easier (and works already) is to install PHP as CGI/FastCGI >> (one version or all of them, one can be module of course) and define the >> required PHP version b

Re: [PHP-DEV] Apache handler with Multiple PHP versions

2007-07-11 Thread Richard Lynch
On Wed, July 11, 2007 6:13 pm, Tijnema wrote: > On 7/12/07, Jani Taskinen <[EMAIL PROTECTED]> wrote: >> A lot easier (and works already) is to install PHP as CGI/FastCGI >> (one version or all of them, one can be module of course) and define >> the >> required PHP version by the file suffix.. >> >>

Re: [PHP-DEV] Apache handler with Multiple PHP versions

2007-07-11 Thread Johannes Schlüter
Hi On Thu, 2007-07-12 at 01:13 +0200, Tijnema wrote: > > I know this is possible, and I believe it is possible in Apache too > with some kind of hack? > But this still doesn't solve a lot of problems, but will generate a > lot more with portable code. Take a bulletin board for example, there > ar

Re: [PHP-DEV] Apache handler with Multiple PHP versions

2007-07-11 Thread Guilherme Blanco
Hi Tijnema, I think here is something that might interest you: http://www.phpclasses.org/browse/package/3472.html Regards, On 7/11/07, Tijnema <[EMAIL PROTECTED]> wrote: On 7/12/07, Jani Taskinen <[EMAIL PROTECTED]> wrote: > A lot easier (and works already) is to install PHP as CGI/FastCGI >

Re: [PHP-DEV] Apache handler with Multiple PHP versions

2007-07-11 Thread Tijnema
On 7/12/07, Jani Taskinen <[EMAIL PROTECTED]> wrote: A lot easier (and works already) is to install PHP as CGI/FastCGI (one version or all of them, one can be module of course) and define the required PHP version by the file suffix.. --Jani Hello Jani: I know this is possible, and I believe i

Re: [PHP-DEV] Apache handler with Multiple PHP versions

2007-07-11 Thread Jani Taskinen
A lot easier (and works already) is to install PHP as CGI/FastCGI (one version or all of them, one can be module of course) and define the required PHP version by the file suffix.. --Jani Tijnema kirjoitti: Hello developers, The thread about dropping support for PHP4 gave me a new idea, havi

[PHP-DEV] Apache handler with Multiple PHP versions

2007-07-11 Thread Tijnema
Hello developers, The thread about dropping support for PHP4 gave me a new idea, having multiple PHP versions to be loaded by the Apache2handler SAPI. The idea: I was thinking about something like the shebang(#!) line used in bash/perl/python and even PHP scripts. But this time not for the progr