|
|
 |
Re: FN-FORUM: This is driving me mad
date posted 2nd August 2005 19:26
move_uploaded_file worked - thanks. Why copy didn't goodness knows.
Pam
----- Original Message -----
From: "Richard" [EMAIL REMOVED]
To: [EMAIL REMOVED]
Sent: Tuesday, August 02, 2005 7:33 PM
Subject: RE: FN-FORUM: This is driving me mad
>
>
> Are you able to verify that the copy worked ok?
>
> I'm assuming this is PHP, so you might have more luck using the PHP
> function "move_uploaded_file"
>
> http://uk2.php.net/manual/en/features.file-upload.php
>
>
>
>> -----Original Message-----
>> From: [EMAIL REMOVED] [EMAIL REMOVED] On
>> Behalf Of PAMELA WHITTAKER
>> Sent: 02 August 2005 19:17
>> To: FN-FORUM / [EMAIL REMOVED]
>> Subject: FN-FORUM: This is driving me mad
>>
>>
>>
>> I have the following bit of code duting a file upload
>>
>>
>> echo filesize($res1);
>> $res = copy($res1, $p.$i_name);
>> echo filesize($res1);
>> echo filesize($p.$i_name);
>>
>>
>> echo filesize($res1) come out as 93605 but echo
>> filesize($p.$i_name) is 0 -
>> why? $res is true so the copy isn't failing.
>>
>> Thanks
>> Pam
>>
>>
>>
>> --
>> Freelancers, contractors earn more with Prosperity4
>> Call 0870 870 4414 or visit www.prosperity4.com
>> and benefit from Inland Revenue approved expenses today.
>>
>> To advertise here: http://www.freelancers.net/advertising.html
>>
>>
> --
> Freelancers, contractors earn more with Prosperity4
> Call 0870 870 4414 or visit www.prosperity4.com
> and benefit from Inland Revenue approved expenses today.
>
> To advertise here: http://www.freelancers.net/advertising.html
>
> |
 |
|