1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Development .htaccess question

Discussion in 'Software' started by Bruno_me, 25 Oct 2004.

  1. Bruno_me

    Bruno_me Fake-ad‎min

    Joined:
    30 Mar 2003
    Posts:
    1,136
    Likes Received:
    1
    does anyone know how to make a .htaccess file make apache use php5 as opposed to php4... my webhost has php5 installed, but it defaults to php4

    it should just be a addtype thinger, but I'm not sure, that's why I'm asking

    I'm kinda tired, but I hope this makes enough sence :)
     
  2. ST8

    ST8 What's a Dremel?

    Joined:
    14 Feb 2003
    Posts:
    596
    Likes Received:
    0
    AddType application/x-httpd-php5 .php

    sommit like that?
     
  3. OneSeventeen

    OneSeventeen Oooh Shiny!

    Joined:
    3 Apr 2002
    Posts:
    3,454
    Likes Received:
    2
    This is what I use on my PowWeb account:

    AddHandler application/x-httpd-php5 .php

    And I'm pretty sure you can add stuff like:
    AddHandler application/x-httpd-php4 .php4

    to handle PHP4 files with .php4 extensions.

    (You'd be surprised how many of your scripts just won't work in PHP5, then once you rewrite them the way you wish you did in the first place, they are somewhat faster than before, with more features! :) )
     
  4. Bruno_me

    Bruno_me Fake-ad‎min

    Joined:
    30 Mar 2003
    Posts:
    1,136
    Likes Received:
    1
    I found it in my host's faqs, thanks though :)

    edit: most of my php4 scripts do work faster in php5, which is an added bonus :D
     
    Last edited: 25 Oct 2004

Share This Page