Hi,
i have been having a problem running a script that uploads pictures to specific directories since a recent php update. i have been getting these errors:
Warning: chmod() [function.chmod]: Operation not permitted in /home/bfp/public_html/networkers/pictures.php on line 60
Warning: mkdir() [function.mkdir]: Permission denied in /home/bfp/public_html/networkers/pictures.php on line 62
Warning: mkdir() [function.mkdir]: No such file or directory in /home/bfp/public_html/networkers/pictures.php on line 63
Warning: chmod() [function.chmod]: Operation not permitted in /home/bfp/public_html/networkers/pictures.php on line 65
the script changes the current file to 777 permissions then creates a directory (if required) and then goes back to 644.
but i have been getting these errors for a little while now.
I have tried making everything involved 777 manually and making sure working directory is correct but it doesn't seem to help.
I don;t know if this is a server error or a problem i can solve. if it is a server error i know the people who run it so will be able to get them to sort it if i know the problem.
Many thanks
(hope this was the right forum wasn't really sure)
Permission Problems
Moderator: General Moderators
- akimm
- Forum Contributor
- Posts: 460
- Joined: Thu Apr 27, 2006 10:50 am
- Location: Ypsilanti Michigan, formally Clipsburgh
Make sure the actual directory is set to 755 and the scripts as well.
I would then suggest, if that doesn't work(which this has been the case for me before) perhaps put all the files into a new directory, before running the PHP make sure everything is right, then try again. If that doesn't work, someone else will probably be able to help you.
I would then suggest, if that doesn't work(which this has been the case for me before) perhaps put all the files into a new directory, before running the PHP make sure everything is right, then try again. If that doesn't work, someone else will probably be able to help you.