參數錯誤,請幫我對我有我的第一頁的這個問題,我不知道如何解決它我
Warning: Missing argument 1 for isblockedip(), called in /home/u425835176/public_html/shad0w.php on line 174 and defined in /home/u425835176/public_html/core.php on line 4715
功能
function isblockedip($var)
{
$text = $_SERVER['REMOTE_ADDR'];
$rez = mysql_query("SELECT * FROM lib3rtymrc_blockedip");
$i=0;
while($row=mysql_fetch_array($rez))
{
$var[$i]=$row[1];
$i++;
}
$result = count($var);
for ($i=0;$i<$result;$i++)
{
$ausg = stristr($text, $var[$i]);
if(strlen($ausg)>0)
{
return true;
}
}
return false;
}
in shad0w.php
if(isblockedip())
{
////here comes the message
}`
謝謝你,解決 – 2015-04-01 10:45:31
@RoyalRB歡迎你 – 2015-04-01 11:01:00