uploading files

From: Date: Thu, 08 Jun 2000 09:24:24 +0000
Subject: uploading files
Groups: php.windows 
Request: Send a blank email to php-windows+get-340@lists.php.net to get a copy of this message
Hello php-windows, i did somethig like this for upload problem,, and it works... --------- --------- --------- --------- <form enctype="multipart/form-data" action="index.php" method=post> <input type="hidden" name="max_file_size" value="9000"> select file to upload to server: <br> <input name="userfile" type="file"> <input type="submit" value="now send this file" size=40 name="doit"> </form> <? if ($doit) { $userfile1=str_replace("\\\\","/",$userfile); copy($userfile1,$DOCUMENT_ROOT. "users/pdc/".$userfile_name); } ?> --------- --------- --------- --------- change path as you like.... my temp path is "d:\tmp" and doc root is "f:\http\suraj\" and after uploading file are save to "f:\http\suraj\users\pdc" -- Best regards, sur-php mailto:sur_php@yahoo.com __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com

« previous php.windows (#340) next »