Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30802 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44009 invoked by uid 1010); 12 Jul 2007 00:25:31 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 43994 invoked from network); 12 Jul 2007 00:25:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jul 2007 00:25:31 -0000 Authentication-Results: pb1.pair.com header.from=ceo@l-i-e.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=ceo@l-i-e.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain l-i-e.com from 67.139.134.202 cause and error) X-PHP-List-Original-Sender: ceo@l-i-e.com X-Host-Fingerprint: 67.139.134.202 o2.hostbaby.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from [67.139.134.202] ([67.139.134.202:4400] helo=o2.hostbaby.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 81/35-05872-9F475964 for ; Wed, 11 Jul 2007 20:25:31 -0400 Received: (qmail 45348 invoked by uid 98); 12 Jul 2007 00:25:32 -0000 Received: from 127.0.0.1 by o2.hostbaby.com (envelope-from , uid 1013) with qmail-scanner-2.01 (clamdscan: 0.88.7/3634. Clear:RC:1(127.0.0.1):. Processed in 0.076863 secs); 12 Jul 2007 00:25:32 -0000 Received: from localhost (HELO l-i-e.com) (127.0.0.1) by localhost with SMTP; 12 Jul 2007 00:25:32 -0000 Received: from 24.1.37.132 (SquirrelMail authenticated user ceo@l-i-e.com) by www.l-i-e.com with HTTP; Wed, 11 Jul 2007 19:25:32 -0500 (CDT) Message-ID: <2067.24.1.37.132.1184199932.squirrel@www.l-i-e.com> In-Reply-To: References: <469562DD.2030601@sci.fi> Date: Wed, 11 Jul 2007 19:25:32 -0500 (CDT) To: "Tijnema" Cc: jani.taskinen@iki.fi, "PHP Developers Mailing List" Reply-To: ceo@l-i-e.com User-Agent: Hostbaby Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] Apache handler with Multiple PHP versions From: ceo@l-i-e.com ("Richard Lynch") On Wed, July 11, 2007 6:13 pm, Tijnema wrote: > On 7/12/07, Jani Taskinen 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 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 > are a lot of files inside a board, and when you want to install that > on your host that has PHP5 for files with .php5, you need to rename a > hell lot of files to .php5, AND change code inside the .php5 files to > point to the renamed files. No, you add a config in httpd.conf or add to .htaccess a line like ForceType whatever/gets/you/to/php-5 Other problems: 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? You also would have to re-think what happens when a version is requested that isn't installed at all... You currently have it just run in the default version, I think, but is that really useful? If the code really NEEDS PHP 5, and the server doesn't have 5, only 4, running the code that needs 5 is probably not the right action... -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?