ich hab das jetzt halt auch gemacht und wollt fragen, warum der mir hier eine leere seite anzeigt...:
Code: Alles auswählen
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<title>Neue Seite 1</title>
</head>
<body>
<?php
$target_path = "uploads/";
$target_path = $target_path . basename( $_FILES['uploadedfile']['name']);
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
echo "Die Datei ". basename( $_FILES['uploadedfile']['name']). " ´wurde erfolgreich hochgeladen!
Du findest sie hier: http://meinepage/upload_images/uploads/basename( $_FILES['uploadedfile']['name']";
} else{
echo "Es gab ein Problem beim Upload, bitte versuche es noch einmal!";
}
?>
</body>
</html>