歡迎光臨, 訪客. 請先 登入註冊一個帳號.
五月 03, 2024, 11:33:28 上午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
  列出文章
頁: [1]
1  開發 / 外掛程式 / Re: 請問有沒有 syntax highlight的外掛 於: 二月 08, 2006, 10:00:21 下午
是的,WordPress 的 plugins iG_Syntax_Hiliter 正是用 GeShi 來完成 syntax highlight 的。
剛測試了一下iG_Syntax_Hiliter,中文 comment 沒問題。

改天來玩玩看 LifeType 的 syntax highlight。
2  支援 / 安裝與設定 / Re: 請問 LifeType 1.0.3 是不是對 PHP 5.12 的支援不是很好? 於: 二月 08, 2006, 09:44:13 下午
原來如此,PHP 5.0.5 和 PHP 5.1.X 存在這麼多差異啊!

不過我用 PHP 5.1.2 裝 WordPress 2.01 倒是滿順利的。
可以請問一下是因為 LifeType 1.0.3 的何種架構(或是說哪些程式用法)?  造成安裝不同版本的 PHP 會出現問題。
例如跟 LifeType 1.0.3 的MVC 架構有關嗎?
3  支援 / 安裝與設定 / 請問 LifeType 1.0.3 是不是對 PHP 5.12 的支援不是很好? 於: 二月 05, 2006, 10:38:56 下午
1. 安裝至第3步驟時,錯誤如下:
Notice: Undefined variable: message in c:\Inetpub\wwwroot\lifetype\wizard.php on line 971
Notice: Undefined index: REQUEST_URI in c:\Inetpub\wwwroot\lifetype\wizard.php on line 991

2. wizard.php 內容如下:
971  $message .= "Table <strong>".$table["desc"]."</strong> created successfully.<br/>";
...
991  $requestUrl = $_SERVER["REQUEST_URI"];

3. 我的作法:
第一項找不出錯在哪? 望賜教。
第二項更改 $_SERVER["REQUEST_URI"] 為 $_SERVER["SCRIPT_NAME"] 即可。 (因為PHP5沒有_SERVER["REQUEST_URI"]變數)

4.若忽略第一項錯誤繼續完成安裝。
首頁依舊有眾多錯誤訊息,我將 php.ini 的 zend.ze1_compatibility_mod 設成 On 如下,
; Enable compatibility mode with Zend Engine 1 (PHP 4.x)
zend.ze1_compatibility_mode = On
重新執行後解決了部份錯誤,但依舊有如下錯誤:
Notice: Undefined variable: postTexts in c:\Inetpub\wwwroot\lifetype\class\dao\articles.class.php on line 506

Notice: Undefined variable: postTexts in c:\Inetpub\wwwroot\lifetype\class\dao\articles.class.php on line 506

Warning: Cannot modify header information - headers already sent by (output started at c:\Inetpub\wwwroot\lifetype\class\dao\articles.class.php:506) in c:\Inetpub\wwwroot\lifetype\class\view\view.class.php on line 316

Warning: Cannot modify header information - headers already sent by (output started at c:\Inetpub\wwwroot\lifetype\class\dao\articles.class.php:506) in c:\Inetpub\wwwroot\lifetype\class\view\view.class.php on line 177
==================================

想請問,LifeType 1.0.3 是不是對 PHP 5.12 的支援不是很好?
或是php.ini還有哪些設定值須更改?
(環境是以php-5.1.2-installer.exe安裝至IIS6.0,並將php-5.1.2-Win32.zip解壓縮至安裝目錄,更改了php.ini部分內容)
頁: [1]