Lines Matching refs:dir
2 Test copy() function: usage variations - destination dir access perms
11 /* Test copy(): Trying to create a copy of file in a dir which doesn't have write permissions */
15 echo "*** Test copy() function: Trying to create a copy of file in a dir which doesn't have write p…
21 $dir = $file_path."/copy_variation15";
22 mkdir($dir);
24 $old_perms = fileperms($dir);
26 chmod($dir, 0555); //dir without write permissions
28 $dest = $dir."/copy_copy_variation15.tmp";
30 var_dump( copy($file, $dir."/copy_copy_variation15.tmp") );
31 var_dump( file_exists($dir."/copy_copy_variation15_dir.tmp") );
34 chmod($dir, $old_perms);
44 *** Test copy() function: Trying to create a copy of file in a dir which doesn't have write permiss…