i want to delete files from a directory via php. Somehow my php_errorlog always tells me:
[06-Haziran-2010 19:38:46] PHP Warning: chmod () [function.chmod]: Operation in / Users / myname / htdocs / izin verilmez
if ($_POST) {
echo "yeah!!!";
print count($_POST['deletefiles']);
chmod($path, 0777); //server rights
foreach ($_POST['deletefiles'] as $value) {
print $value;
unlink($path .'/' . $value);
}
//chmod($path, 0666); //server rights
}
Ben yanlış ne yapıyorum? Teşekkür ederim