Mailinglisten-Archive |
am 11.11.2001 23:13 Uhr schrieb Matthias Haenel unter matthias_(at)_php-site.de:
> Ich denke Du hast ein Problem mit deinem PHP.
> Vielleicht hast Du ja nur die shortversion angeschaltet.... <? und nicht
> <?php
> aber ansonsten funzt der Code.
ich denke, ich hab ein anderes problem mit meinem php...nur mit <? klappts
auch nicht, aber ich hab in der zwischenzeit ein anders script gefunden,
dass auch bei mir funzt!!!
nur falls es interessiert:
<?php
$move_to_dir = "img/uploads";
if ( file_exists($uploadfile) ){
// File is uploaded
copy($uploadfile, $move_to_dir . "/" . $uploadfile_name);
echo "alright!";
}else{
// No file uploaded, show the form
echo "<html><body>";
echo "<form enctype='multipart/form-data' action='test2.php'
method='post'>";
echo "Upload this file: <input name='uploadfile' type='file'>";
echo "<input type='submit' value='Upload'>";
echo "</form>";
echo "</body></html>";
}
?>
gruss,
michael
php::bar PHP Wiki - Listenarchive