thanks Rohan.
you put me on the correct path.
If I did:
$filename = basename ("p:\signature.txt");
$filename will remain as p:\signature.txt
your suggestion works if
basename("\siganture.txt")
so, I had to do the following;
$fileNameTemp=ereg_replace("[\x5c]","/",$file_attach);
$fileName=basename("$fileNameTemp");
Cheers,
Frank