Hi all... im very new to the php coding world so any help is appreciated....
Im trying to chmod a file in a directory..... i found the chmod command and its usage over at php.net
and have come up with this script...
<?php
chmod ("testarea/test.txt", 0755);
?>
this is causing the following output
Warning: chmod(): Operation not permitted in /home/virtual/site5/fst/var/www/html/chmodtest.php on line 2
I saw a post here regarding permissions so changed the script to look like this
<?php
chown ("testarea/test.txt", nobody);
chmod ("testarea/test.txt", 0755);
?>
and the output from that was
Warning: chmod(): Operation not permitted in /home/virtual/site5/fst/var/www/html/chmodtest.php on line 2
Warning: chmod(): Operation not permitted in /home/virtual/site5/fst/var/www/html/chmodtest.php on line 3
Anyone able to help???