i tried many methods to check if the given input number/word is allready in the list file where it should have written to… if yes it should not saved in it and if no add to the last line.
see here one of my code try’s
[php]
"; echo " "; if(in_array($code,$content)) { echo "$code allready there"; } else { file_put_contents($file, $code, FILE_APPEND | LOCK_EX); file_put_contents($file, $break, FILE_APPEND | LOCK_EX); echo "$code succesfully added"; } ?>
[/php]
i also tried with array_search and count btw array_unique
no success yet, maybe you can help me.