I have this script which I will post below.. the problem is that the following script only works with number..
when I use this script the error.txt will only write numbers and if I send text like... ?trueId=hey nothing happens
but ?trueId=1 works just fine.. heres the script
<?php
$handle = fopen('error.txt', 'r+');
$trueId = $_GET[trueId];
$nextLine = false;
$realText = false;
while(!feof($handle) && $realText != $trueId)
{
$nextLine = fgets($handle);
$realText = $nextLine + "\n";
}
if($realText != $trueId){
$break = "\n";
$text = $trueId;
fwrite($handle, $break);
fwrite($handle, $text);
fclose($handle);
?>
THANK YOU! Appreciate the help!