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.