delete
Moderator: General Moderators
You would want to reverse the condition as a start:
to
Inside rename.php you check if image is a valid image name in your directory.
Check out dirname(), realpath() and the other file functions.
Code: Select all
if ($image == "." || $image == "..")Code: Select all
if ($image != "." && $image != "..")Check out dirname(), realpath() and the other file functions.