|
|||||||||
|
|
#1 (permalink) |
|
AussieHost.com Founder
Join Date: May 2007
Posts: 767
|
Both PHP4 and PHP5 are available on AussieHost.com servers, Koala. Wallaby server is PHP5 only, as PHP4 has been EOL for a long while now.
They are both installed as apache modules (mod_php5 + mod_php4). Having both versions of php available as modules, rather than running 1 of them as a CGI, is better as your existing scripts and permissions will need no modification, in order to run under php4 or php5. All you have to do to run existing or new scripts via php5 is either place a .htaccess file within the directory that you want to run php5, with the following within it. Code:
AddHandler application/x-httpd-php5 .php You are able to place a .htaccess file within any directory and run different versions of php, all within the same site. Of course a .htaccess file placed within your public_html directory, will enable you to run php5 scripts anywhere on your site, you don't have to place a .htaccess file within every directory. You can also use 'php_value' directives within your .htaccess files as well, just like you can with php4. The syntax is just slightly different. You would use php5_value rather than php_value if you run php5 within that directory. You can see your servers php configuration via - Koala server PHP5 - http://koala.aussiehost.com/phpinfo.php5 Koala server PHP4 - http://koala.aussiehost.com/phpinfo.php Wallaby PHP5 - http://wallaby.aussiehost.com/phpinfo.php |
|
|
|
|
|
LinkBack | Thread Tools | Display Modes |
![]() |
| Thread Tools | |
| Display Modes | |
|
||||||||
Website Design by mSites Copyright AussieHost.com 2007. All Rights Reserved. Search Engine Friendly URLs by vBSEO 3.1.0 |