Changing ASP DO NET TO PHP

Discussion in 'PHP' started by wamchu, Apr 16, 2007.

  1. stevecrozz

    stevecrozz Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    can't you just
    AddHandler php4-cgi .php .php4 .asp .aspx
    Code (markup):
    in your .htaccess

    If I'm not mistaken that would cause php to evaluate files with any of the listed extensions. Make sure the handler name is correct. Yours may not be php4-cgi. Also you'll probably want to add directory indexing for index.asp etc.

    --Stephen
     
    stevecrozz, Apr 16, 2007 IP
  2. venetsian

    venetsian Well-Known Member

    Messages:
    1,105
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    168
    #3
    Ya .. masking the asp to php would do the trink. I would go for that.

    Cheers,

    Venetsian.
     
    venetsian, Apr 16, 2007 IP
  3. wamchu

    wamchu Peon

    Messages:
    2,133
    Likes Received:
    87
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hi Thanks, pls tell how do i do that!
     
    wamchu, Apr 16, 2007 IP
  4. venetsian

    venetsian Well-Known Member

    Messages:
    1,105
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    168
    #5
    Just add the line in your .htaccess .....

    If you're using Windows host then this wouldn't work :-(

    Cheers,

    Venetsian.
     
    venetsian, Apr 16, 2007 IP