Re: File Name and Path

From: Date: Tue, 11 Dec 2001 18:55:22 +0000
Subject: Re: File Name and Path
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-77328@lists.php.net to get a copy of this message
Do a variable dump and see if any variables have that value: <pre><?php print_r(get_defined_vars()) ?></pre> Mike Pong-Tc wrote:
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


« previous php.general (#77328) next »