@fsockopen not connected

Alles, was den Apache betrifft, kann hier besprochen werden.

@fsockopen not connected

Postby jeric500 » 06. December 2020 04:25

Hi I have a firewall on my network and I was trying to use this code to test any internet connection.
<?php

if(!$sock = @fsockopen('www.google.com', 80))
{
echo 'Not Connected';
}
else
{
echo 'Connected';
}

?>

It is echoing Not Connected
I have IP address for proxy but I'm not sure if proxy will work.
or how to add this in Apache.
jeric500
 
Posts: 4
Joined: 23. November 2020 12:21
XAMPP version: v3.2.4
Operating System: windows 10

Return to Apache

Who is online

Users browsing this forum: No registered users and 26 guests