I am trying to make a if that will try to get a line of a document by searching after it. So it searches for "Registrar Handle" in the document and get the whole output of the line.
The problem I have is that is that I get this error: Notice: Undefined index: Registrar Handle in C:\xxxx\xxxx\xxx\xx on line 29
Would be nice if someone had a solution for this and maybe have an explanation for why it is happening?
$commandR = "whois ".mysql_result($domain, 0);  
$outputR = shell_exec($commandR);
$fhR = fopen('R.txt','w+');
fwrite($fhR,$outputR);
fclose($fhR);
  { 
    //.no
    if( strpos(file_get_contents("./R.txt"),$_GET['Registrar Handle'])){
       $fhR = fopen('A.txt','r');
       $R = fgets($_GET);
       fclose($fhA);
       Echo $R;
       //mysql_query("UPDATE `dom_oversikt`.`server1` SET `Registrar`='".$R."' WHERE `id` = '$id';");      
    }
 
     
    