Is it possible to cahce the result of fsockopen for, lets say, 5 minutes? This i need because of the slow website loading, i went from 0.00001s page load to 1.00137s page load time with fsockopen (this is when the server does not respond.
CODE:
<?php $fp = @fsockopen('127.0.0.1', '666');
if ($fp) { echo 'online'; }else{ echo 'offline'; }?>