RE: [PHP] Uploaded File OverWriting Old File

From: Date: Sat, 11 May 2002 17:38:13 +0000
Subject: RE: [PHP] Uploaded File OverWriting Old File
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-97145@lists.php.net to get a copy of this message
WOOO.. i did not know this was possible : file_exists("mjpalpics/$img1_name") And this might actually solve the whole issue!! Let me try this.. Thanks a BUNCH! T. Edison Jr. --- John Holmes <holmes072000@charter.net> wrote: > > > copy("$img1", "mjpalpics/$img1_name") or Die > ("Could > > > not do"); > > > > > > Sends the images to the mjpalpics Directory! > > Possibly. But one thing that is definitely a > problem is: > > > > if(file_exists($img1_name)) { > > $img1_name = "n"+$img1_name; > > } > > > > should be: > > > > if(file_exists($img1_name)) { > > $img1_name = "n" . $img1_name; > > } > > Umm...wouldn't you want to use > file_exists("mjpalpics/$img1_name") > instead? Otherwise you're not checking for it > existing in the same place > you are copying it to... > > ---John Holmes... > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > ===== Rahul S. Johari (Director) ****************************************** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : abraxastech@yahoo.com Tel : 91-4546512/4522124 ******************************************* __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com

« previous php.general (#97145) next »