I am having an issue with php ftp_chmod()
, not really what is going on.
The directory permissions are being changed, but PHP is throwing a warning essentially just telling me they were changed.
I am hoping this is just an idiot moment for me. Below is the warning that is getting thrown and below that is the line of code.
Again, the permissions are being changed correctly, just having an issue with the warning being thrown:
Severity: Warning
Message: ftp_chmod() [function.ftp-chmod]: Permissions changed on /public_html/pathToMyDir
Filename: models/inventory_model.php Line Number: 63
Line 63 is below:
if (ftp_chmod($conn_id, 0777, $currentFolder.$imgName) !== false) {
echo "chmoded successfully to 0777\n";
} else {
echo "could not chmod \n";
}