File Name and Path
| From: | pong-TC | Date: | Tue, 11 Dec 2001 18:18:06 +0000 |
| Subject: | File Name and Path | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-77325@lists.php.net to get a copy of this message | ||
Hello Listers
I have a question on how to get the full path of source file. I have a
form like this:
<form enctype="multipart/form-data" action="myupload.php"
method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="10000">
Send this file:<br> <input name="userfile" type="file"><br>
<input type="submit" value="Send File">
</form>
I pass the request to myupload.php. If my source file's path is
c:/result.txt, how can I know it in myupload.php? I know that I can get
the file name result.txt, but I don't know how to get the full path.
Anyone, please help.
Pong