Jump to content

Recommended Posts

Posted

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.

Posted

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.

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...