$dirpath.$filetime) { rename("$dirpath"."$file", "$dirpath"."new.jpg"); } else {unlink($dirpath.$file);} } } ### show the file in html - replace your.domain.com with your actual domain echo "Check Out www.ultratech.us For All of Your Tech Help Needs"; ?>