Menu
Here is the php code:
[code=php]
$IPT = implode(”,file(‘ips.txt’));
$BMP = fopen(“ips.txt”,”w”);
$TY = “$IPT|$REMOTE_ADDR”;
fwrite($BMP, $TY);
fclose($BMP);
Its supposed to open ips.txt then insert the current users IP to the end of the files contents. But instead it is placing blank boxes at the end of the files contents.
Here is the contents of ips.txt BEFORE the script is ran:
[CODE]|444.000.000.444|555.555.555.555
Here is the contents of ips.txt AFTER the script is ran:
[CODE]|444.000.000.444|555.555.555.555㙼⸵㠲㠲㜳ㄮ㤹
Can anyone see what I am doing wrong? ?