i tried ur script to check the file size... it goes to the else part and says ../frame.txt contains no data.
but i checked and the file frame.txt is not empty.
this code is in register.cgi file in cgi-bin directory and the file frame.txt is in the folder above cgi-bin folder.so am i writing '../frame.txt' correctly?