hisham
IS-IT--Management
- Nov 6, 2000
- 194
I tried to use the following code to chmode a directory in my linux box and in my internet host:
<?
$dir="/usr/local/apache/htdocs/myif( file_exists( $dir ) ){
if( !is_file( $dir ) ){
chmod($dir,0755);
}
}
?>
but I get the message:
Warning: chmod failed: Operation not permitted in /usr/local/apache/htdocs/my on line 5
I tried $dir="/usr/local/apache/htdocs/myAnd I get the same result. Any help?
Thanks in advance.
<?
$dir="/usr/local/apache/htdocs/myif( file_exists( $dir ) ){
if( !is_file( $dir ) ){
chmod($dir,0755);
}
}
?>
but I get the message:
Warning: chmod failed: Operation not permitted in /usr/local/apache/htdocs/my on line 5
I tried $dir="/usr/local/apache/htdocs/myAnd I get the same result. Any help?
Thanks in advance.