DarkMindZ Codebase
[ PHP ]Remote Upload
Authors Comments: It is VERY simple. It has absolutely zero error checking and it has no progress bar. The file gets downloaded to the same directory that it’s in. MAKE SURE TO CHMOD THE FOLDER TO 777 OR ELSE IT WON’T WORK!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Language" content="en-us" />
<title>PHP Remote Upload</title>
</head>
<body style="background-image: url('http://i28.tinypic.com/141rx1z.jpg'); color: #999999;
">
<div align="center">
<form action="dl.php" method="post" enctype="multipart/form-data">
<h1>PHP Remote Upload</h1>
<input type="text" name="url" size=
"40" style="font-size: 150%; background-color: #414141; border-width: 0px; color: #999999;
" /><br /><br /><input type="submit" name="submit" value=
"Download" style="font-size: 150%" /></form>
</div>
<?php
error_reporting(0);
$remote_file = $_REQUEST["url"];
$file_name = basename($remote_file);
$putdata = fopen($remote_file, "r");
$fp = fopen($file_name, "w");
while ($data = fread($putdata, 102400))
fwrite($fp, $data);
fclose($fp);
fclose($putdata);
?>
</body>
</html>Submitted by: Lag
View Plain Text Version
User: Ludacris
Comment:
I always get 0 byte files on my server
