Re: Editing uploaded file
| From: | Will Hives | Date: | Thu, 31 Jan 2002 09:20:12 +0000 |
| Subject: | Re: Editing uploaded file | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-82893@lists.php.net to get a copy of this message | ||
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 php.general-82852@news.php.net, Jason Wong at
php-general@gremlins.com.hk 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?
>