hello - how do you get the filename of a file when sending email messages with image that are NOT attached for example
when an image is attached is easy $_FILES['att']['name'] but how do get the name of an image that has already been uploaded at this moment i use:
$file = "images/theimg.jpg";
$filename = ereg_replace("images/","",$file);
is there another way to determine this such as filesize($file) ,isnt there one for name?