Skip to content

Commit b40f9ca

Browse files
authored
Created the CopyKitty and CopyKittyHash files.
Created the CopyKitty and CopyKittyHash files.
1 parent 93908d7 commit b40f9ca

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

CopyKitty.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
/*
3+
* @Software: CopyKitty
4+
* @Author: phpjsnerd
5+
* @Email: phpjsnerd@gmail.com
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+
?>

CopyKittyHash.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
/*
3+
* @Software: CopyKittyHash
4+
* @Author: phpjsnerd
5+
* @Email: phpjsnerd@gmail.com
6+
*/
7+
$hasho=hash_file('SHA384', 'archive.zip');
8+
echo $hasho;
9+
?>

0 commit comments

Comments
 (0)