Hello, souravsasi!
Here is the PHP code, that you can use:
<?
$up = fsockopen("www.yourURL.com", 30); // the URL, well is obvious, but its important that you dont put [url]http://[/url] or it will not work, and 30 is how long in seconds it should run for before it determines as a timeout.
if($up)
{
echo "<a href=\"http://www.yourURL.com\">Go to URL</ a>"; //displays link to URL if its valid
}
?>
Bereza Nikita
Rapid Internet Development Department
E-mail: nike@alarit.com
Alar Information Technologies,
URL: http://www.alarit.com