> > 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

Reply via email to