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