Simple Server To Server Files Tranfer Script [Php]
<?
if ($_GET[act])
{
if ($_POST[from] == "")
{
print "You need to enter the URL of the file.";
}
else
{
copy("$_POST[from]", "files/$_POST[to]");
$size = round((filesize("files/$_POST[to]")/1000000), 3);
print "Success! The file <a><a href=\"$_POST[from]\">$_POST[from]</a> is now stored on our server. You can view it here:
<a><a href=\"files/$_POST[to]\">$_POST[to]</a> $size MB";
}
}
else
{
print "<form action=\"$PHP_SELF?act=transload\" method=post>
URL of file: <input name=from>
New filename: <input name=to>
<input type=submit value=\"Transload file!\">";
}
?>
Labels: Tricks
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home