我有一個服務器安裝程序,其中只有phpinfo()的測試腳本正常工作。顯示空白屏幕的PHP腳本
當我嘗試運行我的應用程序時,它顯示爲空白屏幕。
我從瀏覽器調用index.php。前幾行如下:
<?php
error_reporting(E_ALL);
ini_set("display_errors", 1);
require_once('codelibrary...
然而,屏幕仍然是空白的。
編輯1
這裏的文件的結構:
/.htaccess
/index.php
/codelibrary/inc/user-top.php
/codelibrary/inc/variables.php
/codelibrary/inc/config.php
的index.php
<?php
require_once('codelibrary/inc/user-top.php');
...
/codelibrary/inc/user-top.php
<?php
require_once("./codelibrary/inc/variables.php");
...
/codelibrary/inc/variables.php
<?php
include_once('config.php');
...
我以爲這裏引用可能是一個問題,所以我把它改爲:
require_once("./codelibrary/inc/config.php");
爲好,但沒有運氣。
編輯2
啊哈!謝謝上校和topq命令的指出我應該看看日誌文件,它說:
[10月2010年17點06分02秒] PHP的警告:PHP啓動:無法加載動態庫「/ usr/local/lib/php/extensions/no-debug-non-zts-20090626/suhosin.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/suhosin.so:在未知的瀏覽器沒有這樣的文件或目錄上線0
那幾行什麼也不做,會在屏幕上打印出什麼東西,難怪它是空白的......除非你顯示進一步發生的事情在你的腳本中,很難檢查出現什麼問題...... – Select0r 2010-09-10 09:04:54
嗨 - 腳本有很多/它是一個完整的網站,所以我不能複製粘貼所有的信息... – tzmatt7447 2010-09-10 09:22:32