I want to include some PHP 5 funtions in my Drupal PHP snippets (SimpleXML, SOAP, etc.) My ISP (goDaddy.com) runs my Drupal installation under PHP 4.3.11. In order to activate PHP5, the file extension must be .php5. I tried to change index.php to index.php5. The home page loads if I run mysite.com/index.php5 but all other links fail. Help!!!

Thanks,
Laszlo

Comments

luno’s picture

Does godaddy give you the ability to use .htaccess files? Are you using clean urls? You may have to apply some magic on the .htaccess file to fix redirects, so that the .php5 index file is used instead.

osherl’s picture

Yes, I am using clean URLs. I tried to change the following line in .htaccess

RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

to

RewriteRule ^(.*)$ index.php5?q=$1 [L,QSA]

This did not help. What is the correct syntax?

Eagle1-1’s picture

I work for Site5.com and we also have PHP4 and PHP5 installed together. In our setup, you can use the php5 extension or to make PHP5 the default handler, you can add "AddHandler application/x-httpd-php5 .php" in your .htaccess file.

Hope this helps.

Eddie L. Seelke
http://www.seelke.net

osherl’s picture

Adding "AddHandler x-httpd-php5 .php" to .htaccess took care of the problem. Now all my PHP code runs under PHP5. I also googled for "php5 AddHandler goDaddy" and I found the same answer on goDaddy.com here:

http://help.godaddy.com/article.php?article_id=1082&topic_id=77&&

Thank you very much!!! The Drupal Forum rocks!!!