Re: Uploaded File OverWriting Old File
| From: | Thomas Edison Jr. | Date: | Sat, 11 May 2002 11:05:55 +0000 |
| Subject: | Re: Uploaded File OverWriting Old File | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-97086@lists.php.net to get a copy of this message | ||
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.
T. Edison Jr.
=====
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