check the $filename value that it has correct file name with correct path. you have permission to open / write in that folder where you are trying to create file.
saeed
8:24 am on May 21, 2007 (gmt 0)
It work when I remove header command! is there anything related between header command and fopen?