Thanks for your reply, Philip. > realpath() is your friend... That has been my first impression too, but... > realpath() expands all symbolic links I am actually using symlinks :) I trust the files on my server so "local redirects" via symlinks are no problem, the user submitted data is. Regards, Niels. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php