Re: Upload file

From: Date: Mon, 16 Apr 2001 10:17:23 +0000
Subject: Re: Upload file
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-6768@lists.php.net to get a copy of this message
Hi, uploading of file via form is described in chapter 19 of PHP documentation. Look there for more explanation and examples. But the source of error in your case is probably because of incorrect name of NAME field in the form. It should be <INPUT NAME="sourcefile" TYPE="file"> not <INPUT NAME="$sourcefile" TYPE="file">. Don't use "$" - put only the name of the variable. Let me know if it helped you. Greetings Piotr Cenker Sisman wrote: > I am using following code to upload files to server. But it gives error. I > am using Windows 2000 Server / IIS 5.0 > > Please give advice. > > >> > > @copy($sourcefile, $path . "/" . $file_name); > > $sourcefile is defined in form submition > as > <INPUT NAME="$sourcefile" TYPE="file"> > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com

« previous php.windows (#6768) next »