Wrox Programmer Forums
|
BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5
This is the forum to discuss the Wrox book Beginning PHP4 by Wankyu Choi, Allan Kent, Chris Lea, Ganesh Prasad, Chris Ullman; ISBN: 9780764543647
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 7th, 2004, 10:06 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Oh yeah, I kinda forgot about that part. I just assumed that part of any standard PHP install was moving the PHP dlls into the system path -- I didn't know it was Apache specific! =)

Anyway, you can actually run Apache *and* Xitami on the same machine. You can even run several instances of Apache or PHP on the same machine. Just configure each server to listen on a different port.

While testing an application I wrote on multiple versions of PHP, I had a few different Apache servers running on ports 8420, 8430, 8432, and 8433. The first digit, 8, was just a throwback to port 80 being the default HTTP port. The last three digits reference the PHP version running on the server listening to that port. For example, port 8432 was running PHP version 4.3.2.

The only caveat to this (and it's kinda nice, actually), is that all PHP instances use the same PHP.ini file for configuration, since PHP just looks for "php.ini" in your system root dir (i.e. %WINDOWS%, usually C:\WINNT or C:\WINDOWS).


Running it as a module certainly speeds things up since you don't have to run the exe every time you request a page. That's how the CGI-world works. When you consider that each time a page is requested, PHP has to parse php.ini for configuration details, you can imagine how much time you save by just having the configuration loaded once.



Take care,

Nik
http://www.bigaction.org/





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with PHP installation mek Beginning PHP 0 June 28th, 2005 10:36 AM
Still having problem with PWS /PHP Meeza BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 3 January 23rd, 2005 06:28 PM
PWS installation needed Shubhasree Dreamweaver (all versions) 1 September 26th, 2004 09:55 AM
PWS + PHP G-Zilla Wrox Book Feedback 2 July 4th, 2003 12:57 PM
Ch. 1: PHP Installation Troubles: php3 vs php manjito BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 4 June 12th, 2003 03:59 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.