Forum Moderators: coopster
Right now the files are all in a txt file, I seem to be having quite a few issues trying to get something like this to work.
This code returns: "chmod(): Operation not permitted in..."
<?php
chmod("/somedir/somefile", 0755);
?> So I thought about using an FTP type of solution that is found on the lastest post at the php website regarding the chmod command, however i'm not good at php, at least enough to modify that code or create my own.
Any suggestions?
Your posted error : chmod(): Operation not permitted in...
suggests possible permission issues in folder/file.
thats where the chmod($folder_name) comes in.
Also if the script you are using isn't to big, can you post it here? Perhaps there is some other error that prevents the chmod() to function properly
It sounds like it's telling you that the script doesn't have permission to change the permissions, and that would be the case if the script was running as a user other than the user who owns the files.
"No, it runs fine on earlier versions. PHP 5 is needed for ftp_chmod() but see php.net's user comments for a compatible version for pre PHP5."
- I said that ftp_chmod is for php5, look at the post right above where I said "That's only for php5".