I am writing a small cgi script that I would like to write a small file with user relevant information to his/her hard disk. How do I accomplish this? Can I also detect the presence of certain files on his hard disk?