Answer The fsocketopen() function establishes a connection to the resource designated by target on port.
Prototype:
resource fsockopen( string target, int port [, int erron [, string errsting [, float timeout]]])
Example:
<?php
   $http=fsockopen("www.example.com",80);
  
   $req="GET / HTTP/1.1\r\n";
   $req.="Host: www.example.com\r\n";
   $req.="Connection: Close\r\n\r\n";
  fputs($http,$req);
 
  while(!feof($http)){
      echo fgets($http,1024);
   }
fclose($http);
 
?> 
:  html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated in