I have this version when I add the image on the add article page, and that
works fine...



if ($picture != 'none') {

$path = "/home/€€€€€€€€€€/€€€€€€€€€€/php/";
$path1 = "http://www.€€€€€€€€€€.net/php/";;
$b_id = mysql_insert_id();
$new_pic_name = "$b_id$picture_name";
$imageFile = $path1.$new_pic_name;

copy($picture,$path . $new_pic_name);


it's just when it comes to editing the image???

Sorry about this is must be like banging your head against a brick wall.

Cheers
Will





in article [EMAIL PROTECTED], Jason Wong at
[EMAIL PROTECTED] wrote on 30/1/02 5:56 pm:

> On Wednesday 30 January 2002 19:27, will hives wrote:
> 
>> THIS IS THE DOING EDIT SCRIPT:
> 
> [snip]
> 
>> if ($picture) {
>> 
>> $path = "/home/€€€€€€€€€€/€€€€€€€€€€/php/";
>> $path1 = "http://www.€€€€€€€€€€.net/php/";;
>> $b_id = mysql_insert_id();
>> $new_pic_name = "$b_id$picture_name";
>> $imageFile = $path1.$new_pic_name;
>> 
>> copy($picture,$path . $new_pic_name);
>> 
>> 
>> }
> 
> IIRC we've been through this before. Please read the manual. You *need* to
> understand how to handle uploaded files (by reading the manual). The above
> code simply would not work.
> 


-- 
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]

Reply via email to