Lines Matching refs:dir
2 Test copy() function: usage variations - destination dir access perms
16 /* Test copy(): Trying to create a copy of file in a dir which doesn't have write permissions */
20 echo "*** Test copy() function: Trying to create a copy of file in a dir which doesn't have write p…
26 $dir = $file_path."/copy_variation15";
27 mkdir($dir);
29 $old_perms = fileperms($dir);
31 chmod($dir, 0555); //dir without write permissions
33 $dest = $dir."/copy_copy_variation15.tmp";
35 var_dump( copy($file, $dir."/copy_copy_variation15.tmp") );
36 var_dump( file_exists($dir."/copy_copy_variation15_dir.tmp") );
39 chmod($dir, $old_perms);
49 *** Test copy() function: Trying to create a copy of file in a dir which doesn't have write permiss…