Re: Upload file from my local C:

From: Date: Tue, 10 Apr 2001 10:45:43 +0000
Subject: Re: Upload file from my local C:
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-47998@lists.php.net to get a copy of this message
On Monday 09 April 2001 18:35, you wrote: > Christian > > Below is my script. > > <? > if (!copy($file,"1.dat")) { > echo "error"; } > else { > echo "successful"; > } > ?> > > NOTE: where $file is passed by other html using form. how? using a <input type='file'> ? Then re-read the file uploading chapter in the manual > > I use a command "copy" to upload a file from my local win machine to > > webserver. However, it is not successful. It prompts that "Warning: > > Unable to open 'D:\\PHP\\upload1.php' for reading:". I would like to > > know what is the problem -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) AAAAA - American Association Against Acronym Abuse

« previous php.general (#47998) next »