how to embedding website status(realtime online/offline)

Status
Not open for further replies.

toRRfriend

Active Member
1,559
2010
309
40
Guys i have website showcase area in my blog, but some sites goes offline and some not.

eg:

Google (status - online/offline)
#1 search engine




Note:
i want embed status in blogger, so no php

but i have hosting for php, but need to display result in blogger
 
Last edited:
6 comments
So you need to say on your blog whether or not a website address is online/offline?

^ if so, do you mean a file host download link (which has been removed)... or offline as in the website's server is down

If it's purely whether a website is online/offline then the PHP for it is;

<?php
if(@fopen("http://www.google.com/", "r")){
echo 'Website online';
}else{
echo 'Website offline';
}
?>
 
Last edited:
no mate, i need to check the status of website, port 80 is fine, i think...

1 Google (online/offline)
2 Yahoo (online/offline)

but realtime check up, during load in blogger

Note:
blogger don't allow hosting php script
 
Blogger doesn't allow PHP ... so make some javascript OR a HTML Iframe to the site which supports PHP...

<iframe src="http://my-php-host.com/check.php"></iframe>
 
Status
Not open for further replies.
Back
Top