Your Daily Source for Apache News and Information  
Breaking News Preferences Contribute Triggers Link Us Search About
Apache Today [Your Apache News Source] To internet.com

Apache HTTPD Links
Apache-Related Projects
The Java Apache Project
The Apache FAQ
The Jakarta Project
The Apache Software Foundation
Apache-Perl Integration Project
Apache Module Registry
ApacheCon
Apache XML Project
Apache Project
PHP Server Side Scripting

  internet.com

Internet News
Internet Investing
Internet Technology
Windows Internet Tech.
Linux/Open Source
Web Developer
ECommerce/Marketing
ISP Resources
ASP Resources
Wireless Internet
Downloads
Internet Resources
Internet Lists
International
EarthWeb
Career Resources

Search internet.com
Advertising Info
Corporate Info
European Unix Platform (EUP): Running PHP3 and 4 as simultaneous modules within Apache
Oct 14, 2000, 12 :09 UTC (0 Talkback[s]) (983 reads) (Other stories by Hans Wolters)

"If you are maintaining or writing PHP scripts for several sites then you might be in a situation where you will have to use PHP3 code for one site and php4 code for another site. You could go four ways to solve this problem.

  • Install mod_PHP4 and make sure that you will not use functions that are working only in PHP4.
  • Write a shell script to change the apache conf. This can only be used on a development machine.
  • Check the PHP version in every script.
  • Install both modules on Apache and make them run simultaneously."
"The first choice is the one you don't want. You're bound to make a mistake sooner or later. The second choice might be a solution when your working on a development machine but it's nasty, you will have to restart the httpd every time you want to change. The third choice might be a good one but makes the script somewhat bloated, therefor we choose to make a setup which enables you to run them both. You can configure Apache to use different extensions for either module."

"You will have to get both PHP source packages from http://www.php.net. If you have an older php3 source tree then check the documentation to see if the configure script accepts the --enable-versioning option. You may want to get the latest Apache while you are at it. You can find it at http://www.apache.org"

Complete Story

Related Stories:
PHPBuilder: COM Functions in PHP4 (Windows)(Oct 04, 2000)
Why and How I Installed PHP4, MySQL, and Apache on Windows 98(Sep 27, 2000)
IDM: What's New in PHP4?(Aug 23, 2000)
PHPBuilder: Mini Shopping Basket with only PHP4 Sessions(Aug 17, 2000)
WAP Enabling A WebSite with PHP3(Jun 19, 2000)
PHPBuilder: Custom Session Handlers in PHP4(Jun 02, 2000)

  Current Newswire:
Netcraft Web Server Survey for December is available

O'Reilly: Apache Web-Serving with Mac OS X: Part 1

WDVL: Perl for Web Site Management: Part 3

Retro web application framework V1.1.0 release

Leveraging open standards such as Java, JSP, XML,J2EE, Expresso and Struts.

Netcraft Web Server Survey for November is available

FoxServ 2.0 Released

Ace's Hardware: Building a Better Webserver in the 21st Century

Web Techniques: Customer Number One

Apache-Frontpage RPM project updated


No talkbacks posted.
Enter your comments below.
Your Name: Your Email Address:


Subject: CC: [will also send this talkback to an E-Mail address]
Comments:

See our talkback-policy for or guidelines on talkback content.

About Triggers Media Kit Security Triggers Login


All times are recorded in UTC.
Linux is a trademark of Linus Torvalds.
Powered by Linux 2.4, Apache 1.3, and PHP 4
Copyright INT Media Group, Incorporated All Rights Reserved.
Legal Notices,  Licensing, Reprints, & Permissions,  Privacy Policy.
http://www.internet.com/