Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

John Rockefeller's Blog:
PHP Tricks: How To Handle Multiple Domains
May 27, 2008 @ 16:11:01

John Rockefeller has a tip he'd like to share with all of the other PHP developers out there - a little method he's come up with to host multiple domains off of the same code.

This is really handy for those of us who have the same code handling multiple sites or multiple sub-domains. A case in point: When I coded NetBoardz (my free forum hosting service now defunct), I had one codebase handling all 250 forums. How? Simple. When the code runs, it determines which site the user is loading and does different things (like using different databases) dynamically.

He shows the two key points to dividing things up - grabbing the domain and subdomain they were trying to access. This can be fed into a script that can switch things like layout or even functionality based on which site they've chosen.

tagged: trick multiple domain same codebase subdomain hostname

Link:

Jared White's Blog:
Willowgarden & Zend Framework at the same time!
May 05, 2006 @ 11:39:59

Jared White is trying something interesting surrounding two frameworks that have been in the news lately - the Zend Framework and Willowgarden - and combining the two.

Hey, I'm back after taking a couple of days off (aaahhhhh….), and I'm about to embark on a strange new adventure: I shall attempt to discover that far-flung, exotic locale where I hear told that the rare Zend Framework lives underneath the shady canopy of the Willowgarden. I will make copious notes as I conduct my search and will report my findings shortly. Over and out.

Keep an eye out on his blog for further updates - the results should be interesting, productive or not.

tagged: willowgarden zend framework same time use combine willowgarden zend framework same time use combine

Link:

Jared White's Blog:
Willowgarden & Zend Framework at the same time!
May 05, 2006 @ 11:39:59

Jared White is trying something interesting surrounding two frameworks that have been in the news lately - the Zend Framework and Willowgarden - and combining the two.

Hey, I'm back after taking a couple of days off (aaahhhhh….), and I'm about to embark on a strange new adventure: I shall attempt to discover that far-flung, exotic locale where I hear told that the rare Zend Framework lives underneath the shady canopy of the Willowgarden. I will make copious notes as I conduct my search and will report my findings shortly. Over and out.

Keep an eye out on his blog for further updates - the results should be interesting, productive or not.

tagged: willowgarden zend framework same time use combine willowgarden zend framework same time use combine

Link:

Gentoo Blog:
Reminder - You *Can* Run PHP4 And PHP5 On The Same Box At The Same Time
Apr 21, 2006 @ 20:06:26

Stuart Hebert of the Gentoo blog has posted this new item as a reminder to all of those naysayers out there that didn't think it could be done that PHP4 and PHP5 can live together happily on the same box.

Today has served as a timely reminder to me that not everyone understands that it's perfectly possible to have both PHP4 and PHP5 installed in Apache at the same time. A lot of folks just stop when they learn that you can't load mod_php4 and mod_php5 at the same time into Apache. There's no solution in the excellent PHP Manual that I could spot this afternoon (maybe I've just missed it?), and a lot of folks just don't get any further along than that.

As an illustration of its possiblity, he points to this article from Andreas Korthaus showing how it's done under various different types of installs (Apache/CGI, Aapche/suphp).

tagged: multiple versions same box simultaneous cgi module suphp multiple versions same box simultaneous cgi module suphp

Link:

Gentoo Blog:
Reminder - You *Can* Run PHP4 And PHP5 On The Same Box At The Same Time
Apr 21, 2006 @ 20:06:26

Stuart Hebert of the Gentoo blog has posted this new item as a reminder to all of those naysayers out there that didn't think it could be done that PHP4 and PHP5 can live together happily on the same box.

Today has served as a timely reminder to me that not everyone understands that it's perfectly possible to have both PHP4 and PHP5 installed in Apache at the same time. A lot of folks just stop when they learn that you can't load mod_php4 and mod_php5 at the same time into Apache. There's no solution in the excellent PHP Manual that I could spot this afternoon (maybe I've just missed it?), and a lot of folks just don't get any further along than that.

As an illustration of its possiblity, he points to this article from Andreas Korthaus showing how it's done under various different types of installs (Apache/CGI, Aapche/suphp).

tagged: multiple versions same box simultaneous cgi module suphp multiple versions same box simultaneous cgi module suphp

Link:

HowToForge.com:
Running Apache2 With PHP5 And PHP4 At The Same Time
Feb 07, 2006 @ 21:27:53

HowToForge.com has a new tutorail posted today that aims to show you how to run both PHP4 and PHP5 on a single Apache2 web server.

This tutorial shows how to install and configure Apache2 with PHP5 and PHP4 enabled at the same time. Because it is not possible to run both PHP5 and PHP4 as Apache modules, we must run one of them as CGI, the other one as Apache module. In this document I will use PHP5 as Apache module and PHP4 as CGI, and I will describe the setup for the Linux distributions Debian Sarge (3.1) and Ubuntu 5.10 (Breezy Badger).

I want to say first that this is not the only way of setting up such a system. There are many ways of achieving this goal but this is the way I take. I do not issue any guarantee that this will work for you!

They base the entire installation around Debian, so ideally you're set up on it or have some pretty good knowledge of linux in general. They apt-get install several packages, change some Apache config files, enable some modules, and restart things to get it all set up. The Ubuntu install is just about as easy, wiht only really a few items changed.

tagged: run php4 php5 same time linux debian ubuntu run php4 php5 same time linux debian ubuntu

Link:

HowToForge.com:
Running Apache2 With PHP5 And PHP4 At The Same Time
Feb 07, 2006 @ 21:27:53

HowToForge.com has a new tutorail posted today that aims to show you how to run both PHP4 and PHP5 on a single Apache2 web server.

This tutorial shows how to install and configure Apache2 with PHP5 and PHP4 enabled at the same time. Because it is not possible to run both PHP5 and PHP4 as Apache modules, we must run one of them as CGI, the other one as Apache module. In this document I will use PHP5 as Apache module and PHP4 as CGI, and I will describe the setup for the Linux distributions Debian Sarge (3.1) and Ubuntu 5.10 (Breezy Badger).

I want to say first that this is not the only way of setting up such a system. There are many ways of achieving this goal but this is the way I take. I do not issue any guarantee that this will work for you!

They base the entire installation around Debian, so ideally you're set up on it or have some pretty good knowledge of linux in general. They apt-get install several packages, change some Apache config files, enable some modules, and restart things to get it all set up. The Ubuntu install is just about as easy, wiht only really a few items changed.

tagged: run php4 php5 same time linux debian ubuntu run php4 php5 same time linux debian ubuntu

Link:


Trending Topics: