<?php
$metin = $row_pvpliste['link'];
$bul = array('http://');
$degistir = array('');
$degistirilmis = str_replace( $bul, $degistir, $metin );
if (!$socket = @fsockopen("$degistirilmis", 80, $errno, $errstr, 2))
{
echo "<span style='font-family: 'Comic Sans MS';'><font color='dd3333'>
<span class='glyphicon glyphicon-thumbs-down' aria-hidden='true'></span> {$dil['kapali']}
</font></font></span>";
}
else
{
echo "<span style='font-family: 'Comic Sans MS';'><font color='01e426'>
<span class='glyphicon glyphicon-thumbs-up' aria-hidden='true'></span> {$dil['acik']}
</font></font></span>";
fclose($socket);
}
|