This line of code: if(!is_readable("Constants.inc")) chmod("Constants.inc", 0644);
Produces this error: Warning: chmod() [function.chmod]: Operation not permitted in /home/mastersite/public_html/index.php on line 6 What I'm trying to do is determine if Constants.inc is readable. If not, I want to change its permissions. At this point, I'm not worried about if it exists or not. I'm not sure why I can't set it. The owner and group for the file are both 'mastersite', and my PHP is running as 'root' (I know, I know, not a good idea, but I'm in the testing phase right now, and if it's hacked at the moment, it's not a problem). Does anyone have a possible explanation? The file perms for Constants.inc are currently set at executable for all. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php