Problem with uploadscript
| From: | Ruprecht Helms | Date: | Wed, 08 Oct 2003 15:26:55 +0000 |
| Subject: | Problem with uploadscript | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-30905@lists.php.net to get a copy of this message | ||
Hi,
I've problems with a http-uploadscript. When I run the htmlfile and the
script replies an output of the filename but I can't find the file in
the destinationdirectory.
Why this can happen. Addes you can see the html-file and the script
Regards,
Ruprecht
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-15">
<meta name="GENERATOR" content="Quanta Plus">
</head>
<body>
<form action="upload_http.php" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value=10000>
<p>Datei:<input type="file" name="userfile">
<input type="text" name="zielpfad" value="html"></p>
<input type="submit" value="hochladen">
<input type="reset" value="abbrechen">
</form>
</body>
</html>
<?
echo 'Dateiname: ';
echo $userfile;
//chdir('html');
move_uploaded_file($userfile,'html')
?>