PHP 4 and PHP 5 together ?
Posted: Tue Feb 22, 2005 2:19 am
Im using PHP 4.3.10 because my host uses it.
1. But now I want to try out PHP 5.0.3 without removing PHP 4.3.10. Is that possible ?
2. Is it possible to configure in Apache to handle both PHP 4.x and PHP 5.x types ? Say PHP 4.x files are having .php extension and PHP 5.x files have .php5 extension ?
C:\PHP => PHP 4.3.10 package
C:\PHP5 => PHP 5.0.3 package
3. If IT IS then how'll I get to have 2 php.ini files in C:\Windows - one for each ?
4. If all the above as possible then is it possible to club a PHP 4 code and a PHP 5 code in a single script like:
Thanks
1. But now I want to try out PHP 5.0.3 without removing PHP 4.3.10. Is that possible ?
2. Is it possible to configure in Apache to handle both PHP 4.x and PHP 5.x types ? Say PHP 4.x files are having .php extension and PHP 5.x files have .php5 extension ?
C:\PHP => PHP 4.3.10 package
C:\PHP5 => PHP 5.0.3 package
3. If IT IS then how'll I get to have 2 php.ini files in C:\Windows - one for each ?
4. If all the above as possible then is it possible to club a PHP 4 code and a PHP 5 code in a single script like:
Code: Select all
<?php
// PHP 4 code
?>
<hr>
<?php5
// PHP 5 Code
?>