Originally posted here by chsh
Almost the same, but more portable, and faster than fopen/fgets.
Ah. Didn't know that. I just coded mine after reading the PHP manual for about 2 minutes (hint...hint...hint.... )