Results 1 to 6 of 6

Thread: disable php in one folder

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    259

    disable php in one folder

    How can I disable php in one folder. I mean my web site support php and i create new folder on my site and i want to upload php files to this folder but no one can run it at all.

  2. #2
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    I don't think it's possible, and what would be the point? Maybe if you explain the problem, we can help you find a better solution.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    259
    I found the solve

    to do that create file its name .htaccess and put this line in it:
    AddType text/plain .php

    then upload this file to folder

  4. #4
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Ah, I never think of things like that.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    What exactly is the .htaccess file for? I've seen it around, but never bothered understanding why it was there.

  6. #6
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by mendhak
    What exactly is the .htaccess file for? I've seen it around, but never bothered understanding why it was there.
    Pretty good explaination: http://apache-server.com/tutorials/A...-htaccess.html
    My evil laugh has a squeak in it.

    kristopherwilson.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width