當我鍵入此代碼,服務器將顯示「內部服務器錯誤」php的問題(服務器錯誤)
function line($tec,$text,$array)
{
global $html;
$pos= strpos($html,$text);
$len=strlen($text);
$p=$pos;
for ($i = 0; $i < count($array); $i++)
{
if($array[$i]->get_Technique() == $tec)
{if($array[$i]->get_source() == $text)
$p=strpos($html,$text,(int)$p+$len);
if ($p===0 or $p===false or $p===""){return -1;}
}}
$pos=$p;
$result=substr($html,0,$pos);
$lineNum=substr_count($result,"\n");
return $lineNum+1 ;
}
什麼問題?
[下面介紹如何查看實際的錯誤信息。](http://www.wallpaperama.com/forums/how-to-display-php-errors-in-my-script-code-when- display-errors-is-disabled-t453.html) – 2011-06-09 22:07:55