File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
/*
3+
* @Software: CopyKitty
4+
* @Author: phpjsnerd
5+
6+
*/
7+
if(!@copy('http://example.com/archive.zip','archive.zip'))
8+
{
9+
$errors= error_get_last();
10+
echo "COPY ERROR: ".$errors['type'];
11+
echo "<br />\n".$errors['message'];
12+
} else {
13+
echo "File copied from remote!";
14+
}
15+
?>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
/*
3+
* @Software: CopyKittyHash
4+
* @Author: phpjsnerd
5+
6+
*/
7+
$hasho=hash_file('SHA384', 'archive.zip');
8+
echo $hasho;
9+
?>

0 commit comments

Comments
 (0)