in reply to File I/O Help

I think one problem is, that you are repeatedly printing your "Content-type:" header - move it before the while() loop. Maybe the problem disappears when using another browser ? Did you look at the source code that your script sends you back ?