cgm225 Posted April 3, 2008 Share Posted April 3, 2008 Right now my server parses .php extensions with PHP4, and parses .php5 with PHP5. My question is this, I do not have access to the root dir or php.ini, but is there something I can set in my web root dir .htaccess file that will make the server parse all my php scripts (i.e. .php, .php5) with PHP5? Thank you all in advance! Quote Link to comment https://forums.phpfreaks.com/topic/99360-right-now-my-server-parses-php-extensions-with-php4-php5-with-php5/ Share on other sites More sharing options...
trq Posted April 3, 2008 Share Posted April 3, 2008 AddType application/x-httpd-php .php .php4 .php5 Quote Link to comment https://forums.phpfreaks.com/topic/99360-right-now-my-server-parses-php-extensions-with-php4-php5-with-php5/#findComment-508361 Share on other sites More sharing options...
rhodesa Posted April 3, 2008 Share Posted April 3, 2008 You can try thorpe's suggestion, but it's gonna vary from server to server. I'm guessing this is on a hosting service? A quick browse through their FAQ or a phone call to their support desk will get you the exact steps you need. Quote Link to comment https://forums.phpfreaks.com/topic/99360-right-now-my-server-parses-php-extensions-with-php4-php5-with-php5/#findComment-508398 Share on other sites More sharing options...
trq Posted April 3, 2008 Share Posted April 3, 2008 but it's gonna vary from server to server. It shouldn't. Quote Link to comment https://forums.phpfreaks.com/topic/99360-right-now-my-server-parses-php-extensions-with-php4-php5-with-php5/#findComment-508411 Share on other sites More sharing options...
rhodesa Posted April 3, 2008 Share Posted April 3, 2008 Sure it does. Especially the one you posted. It assumes only one version of PHP is installed. On my host at 1&1 I have to add this line: AddType x-mapp-php5 .php Quote Link to comment https://forums.phpfreaks.com/topic/99360-right-now-my-server-parses-php-extensions-with-php4-php5-with-php5/#findComment-508417 Share on other sites More sharing options...
trq Posted April 3, 2008 Share Posted April 3, 2008 Ah yeah, that makes sense. Sorry. Quote Link to comment https://forums.phpfreaks.com/topic/99360-right-now-my-server-parses-php-extensions-with-php4-php5-with-php5/#findComment-508421 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.