I want to search for the following string through the source code of website 'mywebsite.com' with fopen; http://sub.example.com/example.php?id= **random id** but do not want to include let's say http://sub2.example.co m?id=**random id**.
Example:
Code:
$openurl = fopen('http://www.mywebsite.com', "r");
while(! feof($openurl))
{
//Which code do I need to use here?