Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * This is simple description.
- *
- * @author MD Nadim Zobaer <nadimzobaer@hotmail.com>
- * @copyright ecf.me, 2012
- * @version 1.0
- * @license http://creativecommons.org/licenses/by/3.0/legalcode
- */
- /**
- * Checks if a website is up or not using isup.me
- * @param string $website
- * @return boolean Returns if website is up or not
- */
- function ismysiteup($website)
- {
- if(empty($website))
- {
- return false;
- }
- else
- {
- $fcg = file_get_contents("http://www.isup.me/$website");
- if(strpos($fcg, "It's just you"))
- {
- return $website." is up!";
- }
- else
- {
- return $website." is down!";
- }
- }
- }
- echo ismysiteup("ecf.me");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement