-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

* and then Thomas Edison Jr. declared....
> Hi,
> 
> If i have a filename "room.jpg" in my Upload
> Directory, and someone else comes and uploads a file
> by the same name, the previous "room.jpg" is
> overwritten by the new one. Any suggestions?

Well, I presume that you would like for this *not* to happen right?

if so, just add a if(file_exist($img)) { change name of img.

I expect you could add an 1 to the end or better still, have the user
choose another name?

- -- 
Nick Wilson     //  www.explodingnet.com



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE83PEnHpvrrTa6L5oRApJlAJ9n3/jsPvej8U1DwjDQnED7wwp4FQCgjjGh
SO2IqQydOwy9zA0Q7TCd9no=
=xxgQ
-----END PGP SIGNATURE-----

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to