This is working a treat atm and is only taking seconds to find players;
<form method="post">
Enter Player Name: <input type="text" name="playername">
<input type="submit" value="Find ID!">
</form>
<br><br><br><center>
<?php
$search = $_POST["playername"];
$lines = file('h:/cleanedfutplayers.txt');
// Store true when the text is found
$found = false;
foreach($lines as $line)
{
if(strpos($line, $search) !== false)
{
$found = true;
echo $line, "<br>";
}
}
// If the text was not found, show a message
if(!$found)
{
echo "<i>No match found";
}
?>
But im getting the end result like this;
I wish it would be this easy to seach a JSON file because you can filter that really easily :/