Showing absolute path in $_FILES

From: Date: Thu, 04 Dec 2003 18:44:18 +0000
Subject: Showing absolute path in $_FILES
Groups: php.general 
Request: Send a blank email to php-general+get-171873@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. Is there any way to show the whole path, and save that as a variable? Thanks! -David

« previous php.general (#171873) next »