Lines Matching refs:copy
2 Test copy() function: usage variations - existing dir as destination
5 /* Prototype: bool copy ( string $source, string $dest );
6 Description: Makes a copy of the file source to dest.
10 /* Test copy(): Trying to copy the file to a destination, where destination is an existing dir */
14 echo "*** Test copy() function: Trying to create a copy of source file as a dir ***\n";
23 echo "Size of source before copy operation => ";
24 var_dump( filesize($file) ); //size of source before copy
26 echo "Size of destination before copy operation => ";
27 var_dump( filesize($dir) ); //size of destination before copy
30 echo "\n-- Now applying copy() operation --\n";
31 var_dump( copy($file, $dir) ); //expected: bool(false)
42 var_dump( filesize($file) ); //size of source after copy
43 var_dump( filesize($dir) ); //size of destination after copy
55 *** Test copy() function: Trying to create a copy of source file as a dir ***
56 Size of source before copy operation => int(300)
57 Size of destination before copy operation => int(%d)
59 -- Now applying copy() operation --