It uploads it to: /home///php/
and renames it with the article ID number + the original name eg.
41button.gif

should that work??? It does!!! How would you suggest doing it??



in article [EMAIL PROTECTED], Jason Wong at
[EMAIL PROTECTED] wrote on 1/31/2002 3:00 AM:

> On Thursday 31 January 2002 05:13, will hives wrote:
>> 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???
> 
> Honestly, I don't see how this code will work. Are you saying that after
> uploading your image, the above code will copy the uploaded image into
> /home/xxx/xxx/php/new_pic_name?
> 

Reply via email to