in reply to Need help! on this piece of code.

Tiny additional suggestion: change $filenadme to $filename.