Re: Editing uploaded file

From: Date: Thu, 31 Jan 2002 03:00:29 +0000
Subject: Re: Editing uploaded file
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-82852@lists.php.net to get a copy of this message
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? -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk /* Newlan's Truism: An "acceptable" level of unemployment means that the government economist to whom it is acceptable still has a job. */

« previous php.general (#82852) next »