Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

After upgrade to 37. PHP's fsockopen does not work in FF. Security?

  • Cavab yoxdur
  • 1 has this problem
  • 3 views
more options

I have one PHP App on :80, second at :8080 port. but content from :8080 is nested by "fsockopen" in app with :80 port. After update FF do not shows a content. But other Browsers (chrome, epiphany) continue working.

(mjpeg_streamer camera reverse proxy)

$server = "x.x.x.x"; $port = 8080; $url = "/?action=stream"; // image url on server set_time_limit(0); $fp = fsockopen($server, $port, $errno, $errstr, 30); if (!$fp) {

       echo "$errstr ($errno)
\n"; // error handling

} else {

       $urlstring = "GET ".$url." HTTP/1.0\r\n\r\n\r\n"; 
       fputs ($fp, $urlstring); 
       while ($str = trim(fgets($fp, 4096))) 
       header($str); 
       fpassthru($fp); 
       fclose($fp); 

} ?>