Super fast question.
How would you check to see if a file is working or exist?

<?php
$file <---- How would you get this part?
if (!$file) { <------And then check it?
echo "(Offline)";

} else {
echo "(Online)";
}
?>

Thanks.

    5 days later
    <?php
    
     $fp = fopen("http://www.google.com", "r");
     if ($fp)
     {
       echo "Online";
     }
     else
     {
       echo "Offline";
     }
    
    ?>
    
      Write a Reply...