The Andrew N. Wiggins Consultancy

Contact me at webmaster@anw.biz

Experimental Site

 

This site designed by Byg Software Ltd

 


 
1&1 WEBHOSTING
 

 

 

 
Frequently Asked Questions Overview Search Search
Overview :: 7. Advanced functions: PHP, mySQL, perl, ssh... :: PHP ::Article #1


 

How can I get .php files parsed as php4


 

 

By default .php files are parsed as php3 on 1&1 Servers. As it is common practise to parse .php files with the newest php-Version and a lot of scripts require this please use the following work-around:
Please create a .htaccess file in your main directory containing the following:
 

 

.htaccess
AddType x-mapp-php4 .php


 


The changes take effect immediatly.
This also solves the problem with phpmySQL asking for magic quotes to be turned on.
Obviously you can alter the script to AddType x-mapp-php4 .php3 to parse files ending .php3 with php4.

Please note that this will only work on the Linux Packages

TuxOnly!

 

Feedback
© 2003 1&1 WEBHOSTING