I have both php 5 (as main) and php 4 running as cgi.
When a user uploads a script written in php4, apache automatically detects that is php4 and let it run or do I have to specify via .htaccess when is a php4 script??
Thanks
I have both php 5 (as main) and php 4 running as cgi.
When a user uploads a script written in php4, apache automatically detects that is php4 and let it run or do I have to specify via .htaccess when is a php4 script??
Thanks
If the script is meant for PHP 4 specifically and PHP 5 is the default, the user then must manually specify that 4 runs the script otherwise the default will run it.
Upload Guardian 2.0 - Sign up for our early beta
ServerProgress - Server security, consulting and assistance
How to tell the script to run under PHP4 instead of the default PHP5?
SuperBaby
use htaccess to declare which php version should be used to parse php files under that a/c.
Learn atleast A word Daily
7+1 Dedicated Boxes with cPanel...
yeah but php4 and php5 extensions are the same (.php)
How the .htaccess should be??
Thanks
You will want to create the following directives in the .htaccess, the first one basically tells a script of ours not to edit this out of the way:
# Use PHP5 as default
AddHandler application/x-httpd-php5 .php
.php4 and .php5 are always parsed by their respective version of php.