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, 200
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 ?
Then re-read the file uploa
Augusto
NO,
An error message is "Warning: Unable
to open 'D:\\PHP\\upload1.php' for reading:"
"Augusto Cesar Castoldi" <[EMAIL PROTECTED]> wrote in message
Pine.GSO.4.10.10104091306290.171-10@venus">news:Pine.GSO.4.10.10104091306290.171-10@venus...
> what`s the error message now? Can be
On Monday 09 April 2001 17:00, you wrote:
> Hi,
>
> 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
show us
what`s the error message now? Can be something like "permission denied"...
You should create a diretory and do "chmod 666 dir_name", than you'll have
the right permission to write in this diretory.
regards,
Augusto
On Tue, 10 Apr 2001, HK Woo wrote:
> I have tried to add ENCTYPE as you sugges
I have tried to add ENCTYPE as you suggested. However, it still can't work.
The file is located in my D:
Any more idea?
Thank You!
HK Woo
"Michael Hall" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Is the file on your win machine on C: or D: ? There seem
Is the file on your win machine on C: or D: ? There seems to be some
confusion about that. Also, how are you using 'copy' to upload the file?
Are you using a form with a 'file' input type and
ENCTYPE="multipart/form-data" in the FORM tag, etc?
Just some ideas.
Mick
On Mon, 9 Apr 2001, HK Woo w
Hi, Johnson
The file is located at my local WIN ME machine. The file is set to R/W
HK Woo
""Johnson, Kirk"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Are the permissions set OK?
>
> Kirk
>
> > -Original Message-
> > From: HK Woo [mailto:[EMAIL PR
Are the permissions set OK?
Kirk
> -Original Message-
> From: HK Woo [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 09, 2001 9:01 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Upload file from my local C:
>
>
> Hi,
>
> I use a command "copy" to upload a file from my local win machine
9 matches
Mail list logo