On Saturday 11 May 2002 19:05, Thomas Edison Jr. wrote: > Glory! > > > Well, I don't see any thing in your code that > > denotes the directory the images are going in? > > What about this : > > copy("$img1", "mjpalpics/$img1_name") or Die ("Could > not do"); > > Sends the images to the mjpalpics Directory! > > > 'path/to/img/img.jpg' > > exists and if so, name the upload img to something > > else. > > Hmm... possibly when i say > if(file_exists($img1_name)), he's looking for the file > name in the Directory where the Images initially go.. > but then since i copy them elsewhere, they won't be in > the initial place.. and so he overwrites while > copying..Possibly! Don't know for sure.
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; } -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* I had the rare misfortune of being one of the first people to try and implement a PL/1 compiler. -- T. Cheatham */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php