Re: Editing uploaded file

From: Date: Wed, 30 Jan 2002 21:13:15 +0000
Subject: Re: Editing uploaded file
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-82821@lists.php.net to get a copy of this message
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 php.general-82772@news.php.net, Jason Wong at php-general@gremlins.com.hk 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. >

« previous php.general (#82821) next »