you reversed them.

$sfile gets the "Select a file" heading, and $sdir gets "Select a directory"


-KingTomato