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.
use this - $fp = fopen ("http://www.php.net/", "r");
<?php $fp = fopen("http://www.google.com", "r"); if ($fp) { echo "Online"; } else { echo "Offline"; } ?>