RE: [PHP] Re: File upload in map drive with PHP

From: Date: Thu, 26 Jan 2012 15:10:34 +0000
Subject: RE: [PHP] Re: File upload in map drive with PHP
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-316399@lists.php.net to get a copy of this message
I'm using code this bellow. <? if (!empty($_GET["upload"])) { $uploaddir ="x:\\file/"; $uploadfile = $_FILES['userfile']['name']; print "<pre>"; if (move_uploaded_file($_FILES['userfile']['tmp_name'], "$uploaddir"."$uploadfile")) { echo "Dosya basari ile yüklendi. "; } else { print "Dosya yüklenemedi. Tekrar deneyiniz"; } print "</pre>"; } ?> <form enctype="multipart/form-data" action="upload_file.php?upload=1" method="post"> <input type="hidden" name="MAX_FILE_SIZE" value="30000" /> Select image: <input name="userfile" type="file"/> <input type="submit" value="Upload" /> > To: php-general@lists.php.net > From: jim.giner@albanyhandball.com > Date: Thu, 26 Jan 2012 10:00:29 -0500 > Subject: [PHP] Re: File upload in map drive with PHP > > Do you mean you are trying to do an upload of a file on a mapped drive, such > as a network drive? Is this upload using an html form with an <input > type="file"> tag? > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#316399) next »