Showing abosolute path in $_FILES
| From: | David Green | Date: | Fri, 05 Dec 2003 01:00:27 +0000 |
| Subject: | Showing abosolute path in $_FILES | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-4279@lists.php.net to get a copy of this message | ||
Quick file question. I want to have a user locate a file, and have the
absolute path be saved as a variable. I have a form of type "file". In the
form tag, I have enctype="multipart/form-data". On the target page, I call
it by using $file = $_FILES['file']['name']. When i navigate to the file
using the form, I can see the whole path in the "file" box, but when I print
$file, it shows me only the file name without the path. I do not want to
upload the file, I only want to save the path as a variable. How can I do
this?
Thanks!
-David