And check the permissions on the directory where you are going to create the file.
For security reasons, Unix servers run Web processes under a special user/group. If you create a directory using FTP, ssh or telnet, logged in as yourself, the Web server probably will not be allowed to write to it unless you reset the permissions.