Disabling PHP in a folder

Discussion in 'PHP' started by asela_05085, Sep 4, 2009.

  1. #1
    hi,

    is there a way to disable PHP in folder wise(i.e :some folders, where i need to disable PHP functionality but not as globally)
    I'm running PHP 4.3 under red hat linux machine

    thanks :( :(
     
    asela_05085, Sep 4, 2009 IP
  2. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #2
    create file its name .htaccess and Add this one line mentioned below in it:
    AddType text/plain .php

    then upload this file to folder

    i hope that helps

    Regards

    Alex
     
    Last edited: Sep 4, 2009
    kmap, Sep 4, 2009 IP
  3. {m@st3rm!nd}

    {m@st3rm!nd} Peon

    Messages:
    112
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    does this work???
     
    {m@st3rm!nd}, Sep 4, 2009 IP
  4. premiumscripts

    premiumscripts Peon

    Messages:
    1,062
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #4
    This was already asked before (in fact, this week) - search the forums.
     
    premiumscripts, Sep 4, 2009 IP
  5. asela_05085

    asela_05085 Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    the .htaccess method doesn't work for me.
    do i have to make any other changes?
     
    asela_05085, Sep 7, 2009 IP