Page 1 of 1

delete

Posted: Mon Nov 06, 2006 11:51 am
by b18c1
delete

Posted: Mon Nov 06, 2006 12:49 pm
by Mordred
You would want to reverse the condition as a start:

Code: Select all

if ($image == "." || $image == "..")
to

Code: Select all

if ($image != "." && $image != "..")
Inside rename.php you check if image is a valid image name in your directory.
Check out dirname(), realpath() and the other file functions.