Here is the php version for fread_string, fread_number and fread_word. No doubt they are bugged to hell… they work the same way as you would use them in C. The code below is not to be released on any site other than mudbytes.net without express permission from the author.