Problems with chmod()
Posted: Mon Oct 04, 2010 3:00 pm
I am trying to change the file permissions of the file "contador.txt" with the following program:
<?php
error_reporting(E_ALL|E_STRICT);
ini_set('display_errors',true);
chmod("contador.txt",0777);
?>
The file contador.txt is in the same directory of the script.
But I can't change the file permissions ant the following message appears:
Warning: chmod():Operation not permitted in /usr/www/htdocs/eduardo/cambia.php on line 5
What can I do? Please help
<?php
error_reporting(E_ALL|E_STRICT);
ini_set('display_errors',true);
chmod("contador.txt",0777);
?>
The file contador.txt is in the same directory of the script.
But I can't change the file permissions ant the following message appears:
Warning: chmod():Operation not permitted in /usr/www/htdocs/eduardo/cambia.php on line 5
What can I do? Please help