PHP script running immaterial of Unix permission

Discussion in 'PHP' started by siber, Dec 23, 2009.

  1. #1
    Hi,

    I have a php script "/var/www/html/the_php_info.php"
    The file permission is rw-r----- and the user/group of the file is apache.

    Immaterial of Unix file permission I am able to see the outcome of the script "the_php_info.php" in my browser firefox. Why?

    How do I allow only files with execute permission to be run via browser?

    Thanks.
     
    siber, Dec 23, 2009 IP
  2. creativeGenius

    creativeGenius Well-Known Member

    Messages:
    273
    Likes Received:
    5
    Best Answers:
    1
    Trophy Points:
    120
    #2
    creativeGenius, Dec 23, 2009 IP