midwestchasing Posted December 9, 2006 Posted December 9, 2006 Hey all. I'm trying to run a php script but am getting these errors: Warning: chmod() [function.chmod]: Operation not permitted in /home/*****/run.php on line 67 Warning: mkdir(..dir) [function.mkdir]: File exists in /home/********/run.php on line 102 I looked at line 67 and it's trying to set 777, but I already set it manually and that didn't fix it. Quote
carbonize Posted December 9, 2006 Posted December 9, 2006 Is the directory it's trying to perform these actions in set to 777 as well? PHP needs to be given the permissions required to perform these sort of actions in a directory. Quote
carbonize Posted December 9, 2006 Posted December 9, 2006 The second error is down to sloppy coding Warning: mkdir(..dir) [function.mkdir]: File exists in /home/********/run.php on line 102 You should always check if something already exists before trying to make it. Without looking at the script I couldn't suggest anything other than educated guesses. Quote
midwestchasing Posted December 9, 2006 Author Posted December 9, 2006 Yeah I removed that part of the code; folder was made manually. Quote
carbonize Posted December 9, 2006 Posted December 9, 2006 How big is the script? If it's not something huge feel free to email me run.php to look at. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.