I am trying to chmod a huge list of files. I have my script setup right now so that it will import a .txt file that contains the patchs for all of the files.
I can use fopen to open the file and gather the list of file paths to be modified, but I can't figure out how to chmod a file. ftp_chmod is only in php5, and i'm running the latest stable version of php4.
I have tried
chmod($filename, $chmod);
to chmod the specific filename to the set chmod code, but it gives an error:
chmod(): Operation not permitted in...
Any pointers?