Hi Reiniger,
try this : copy(addslashes($file),"1.dat")
hope it is clear.
keyur
----- Original Message -----
From: "Christian Reiniger" <[EMAIL PROTECTED]>
To: "HK Woo" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, April 10, 2001 4:15 PM
Subject: Re: [PHP] Upload file from my local C:
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]