PHP change directory permissions

Discussion in 'PHP' started by Mayhem Design, Nov 17, 2006.

  1. #1
    I have a simple CMS that I built but the server I am hosting on occasionally changes the folder permissions so that the photos directory is no longer 775 but it changes back to 755. Is there anyway to use PHP or Cron (or both) to check on the folder permissions and change them back to 775?

    I'm hosting on Linux with a cPanel interface on the hosting package.

    Thanks,
    Jon
     
    Mayhem Design, Nov 17, 2006 IP
  2. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #2
    mad4, Nov 17, 2006 IP