![](/img/trans.png)
[英]Fatal error: Call to undefined function tep_db_fetch_assoc() in /webshop/index.php on line 105
[英]PHP Fatal error: Call to undefined function display_sess_msg() in index.php on line 148
PHP致命錯誤:在第148行上的index.php中調用未定義的函數display_sess_msg()
我有一個奇怪的問題,我的一台服務器上發生此錯誤,另一台腳本工作
148的錯誤是這樣的: <?=display_sess_msg ();?>
td valign="top" align="right"><font color="#D0601C"><?=display_sess_msg();?></font></td>
admin / includes / funcs_cur.inc.php
function display_sess_msg()
{
if($_SESSION['sess_msg']!=''){
echo '<div class="redcolor">';
echo "<br>".$_SESSION['sess_msg'];
unset($_SESSION['sess_msg']);
echo "</div>";
}
}
奇怪的是,我沒有找到文檔,而是使用<?=display_sess_msg()
這樣的調用而不使用$。 誰能說出為什么在Funio中可以使用,而在我的Debian服務器上卻不能使用。
謝謝
在發生錯誤的服務器上,必須是php.ini中的更改
要么在php.ini中檢查
short_open_tag = On
並重新啟動apache或嘗試使用
<?php display_sess_msg (); ?>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.