Re: Editing uploaded file

From: Date: Wed, 30 Jan 2002 17:56:57 +0000
Subject: Re: Editing uploaded file
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-82772@lists.php.net to get a copy of this message
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. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk /* Would you care to drift aimlessly in my direction? */

« previous php.general (#82772) next »