sample.txt:
ass 55 a6 s6aa a666 as as6
sas a 6 66 6a a666a 66s a
a 5a55s 555a 55 555s a ssa
And i want make if in sample.txt file is 5a55s, then do one function, if there aren't 5a55s in sample.txt file do another function.
How to do that?
I try something, but its wrong:
$aa = 5a55s
<?php
if (in_array(file('sample.txt'),$aa)){
header("Location: baigta.php");
}else {
header("Location: klaida.php");
}
?>
Thanks