hi,
i need a php code that reads the first line of a file "test.txt".
and checks if it is equal to ="hello".
can any body help!
hi,
i need a php code that reads the first line of a file "test.txt".
and checks if it is equal to ="hello".
can any body help!
This code can be used!
<?php
$lns = file('test.txt');
$ln = count($lns);
for($x = 0; $x< $ln; $x++)
{
}
if($lns[0]=='hello')
{
echo "correct";
}
else
{
echo "wrong";
}
?>
?>
hey awsome is working!
Thanks alot!
Bookmarks