<?php include("connect.php"); function link($file) { $query = mysql_query("SELECT dl FROM dl WHERE name='$file';"); $ar = mysql_fetch_array($query); $encoded = base64_encode($file); $link = ("<a href='http://deex.ho.com.ua/show.php?_file=".$encoded."' title='скачать ".$file."'>".$file."</a><br /><span style='color: grey'><small>скачиваний: ".$ar['dl']."</small></span>"); return($link); } ?> <?=link("file1.exe")?><br /> <?=link("file2.exe")?>
<?=link("file1.exe")?><br /> <?=link("file2.exe")?>
error_reporting(E_ALL);
php_flag display_startup_errors on php_flag display_errors on php_value error_reporting 2047
error_reporting(E_ALL); ini_set("display_errors","1");
<?php error_reporting(E_ALL); ini_set("display_errors","1"); function link($file) { $query = mysql_query("SELECT dl FROM dl WHERE name='$file';"); $ar = mysql_fetch_array($query); $encoded = base64_encode($file); $link = ("<a href='http://deex.ho.com.ua/show.php?_file=".$encoded."' title='скачать ".$file."'>".$file."</a><br /><span style='color: grey'><small>скачиваний: ".$ar['dl']."</small></span>"); return($link); } link("Forum_1.7.chm"); link("advanced_toilet.rar"); ?>
function is_online($uin){ $query="GET /online.gif?icq=".$uin."&img=5 HTTP/1.0\n\n"; $host="status.icq.com"; $fp = @fsockopen ($host, 80, &$errno, &$errstr, 30); if ($errno) die ("Ошибка соединения!"); @fputs($fp, $query); while($line[]=@fgets($fp, 900)); return (strpos($line[13], "online1")) ? true : false; }
<?php error_reporting(E_ALL); ini_set("display_errors","1"); function link($file) { $query = mysql_query("SELECT dl FROM dl WHERE name='$file';"); $ar = mysql_fetch_array($query); $encoded = base64_encode($file); $link = ("<a href='http://deex.ho.com.ua/show.php?_file=".$encoded."' title='скачать ".$file."'>".$file."</a><br /><span style='color: grey'><small>скачиваний: ".$ar['dl']."</small></span>"); return($link); } echo link("Forum_1.7.chm").link("advanced_toilet.rar"); ?>