File upload
| From: | Peda | Date: | Fri, 25 Jul 2003 11:10:24 +0000 |
| Subject: | File upload | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-156822@lists.php.net to get a copy of this message | ||
I want to upload some file to my web site.
I'm using this script:
<html>
<head>
<title>Upload Form</title>
</head>
<body>
<form action="upload_single.php" method="post"
enctype="multipart/form-data">
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="102400">
Upload a file: <input type="file" name="thefile"><br><br>
<input type="submit" name="Submit" value="Submit">
</form>
</body>
</html>
The upload_single.php script is just this:
<?php
$ime = $_FILES["thefile"]["name"];
print ($ime);
?>
I just want for begining to print the name of file.
But It doesn't work.
Operating system is Linux.
Web server is Apache.
Can anyone help me.
Greetings!
Peda.