Well, i did that. Here is what i came up with:
<?php
$homepage = file_get_contents('http://******/**.txt');
echo $homepage;
$string = '$_POST["search"];'
$pattern = '/(\w+) (\d+), (\d+)/i';
$replacement = "<B>".$_POST["search"]."</b>";
echo preg_replace($pattern, $replacement, $string);
?>
And the HTML bit.
<html>
<form action='search.php' method='GET'>
<font face='sans-serif' size='5'>
<center>
My Search Engine. <br>
<input type='text' size='50' name='search'> <input type='submit' name = 'submit' value='search'>
</center>
</font>
</form>
</html>
And the error:
Parse error: syntax error, unexpected T_VARIABLE in /htdocs/search.php on line 6
I have removed the website for my reasons 😉
And then i kinda figured it was the <b> tags, so i searched for the writes ones.
And it gave me that code, but with the same error.
So eh.