> > Quick question. My hosting provider, who I
have been happy with for
> > too many years, supports PHP5, but it's not the default. In order
> > to invoke 5 I have to use a .php5 extension. Does this seem like
> > it's going to be doable? Will I have to modify a lot of files or
> > just a few? I'll muddle and find my own answers, but figured this
> > will be quicker.
Something that would probably be a cleaner solution is to determine
how the web server calls php4 vs php5 and change those settings for
your directory. But, there are a bunch of "if"s involved...
If the web server runs Apache, and
If the directory AllowOverride directive is All, and
If you can determine what Action processes PHP5 instead of PHP4, then
You can try something like this:
# grep php5 /etc/apache2/httpd.conf
AddHandler php-script .php5
Action php-script /cgi-bin/php5
Then in .htaccess in your directoy, put
AddHandler php-script .php
Or, this:
# grep php5 /etc/apache2/httpd.conf
AddType application/x-httpd-php .php5
The in .htaccess, you can try:
AddType application/x-httpd-php .php
Of, course, that all depends heavily on your environment.
Dan