What is the command to write integers to a file with PHP 4? I tried fwrite but that doesn't seem to work, even when using strval() to convert to a string. fprintf() is not supported until PHP 5 and I can't seem to find a function that works. I tried using PHP 5 but then fscanf() doesn't seem to work so I'd have to change a bunch of code, although I haven't played around with PHP 5 much yet. Any help would be great.