[問題]關於html語法定義之後的錯誤!

phpBB Installation & Usage Support
phpBB 2 安裝於各類型作業平台之問題討論;外掛問題,請到相關版面依發問格式發表!
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

版面規則
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
主題已鎖定
一尾
星球普通子民
星球普通子民
文章: 14
註冊時間: 2004-06-14 03:10

[問題]關於html語法定義之後的錯誤!

文章 一尾 »

phpBB2 版本:phpBB 2.0.8
●錯誤狀態:
為何我在定義完html語法,發完含有html語法的文章時,就會出現下列錯誤阿?
我是新手,有請各位大大指導,謝謝
Warning: Unknown modifier '\' in /home/rainbow/public_html/phpBB2/includes/functions_post.php on line 83

Warning: Unknown modifier '\' in /home/rainbow/public_html/phpBB2/includes/functions_post.php on line 83

Warning: Cannot modify header information - headers already sent by (output started at /home/rainbow/public_html/phpBB2/includes/functions_post.php:83) in /home/rainbow/public_html/phpBB2/includes/page_header.php on line 474

Warning: Cannot modify header information - headers already sent by (output started at /home/rainbow/public_html/phpBB2/includes/functions_post.php:83) in /home/rainbow/public_html/phpBB2/includes/page_header.php on line 476

Warning: Cannot modify header information - headers already sent by (output started at /home/rainbow/public_html/phpBB2/includes/functions_post.php:83) in /home/rainbow/public_html/phpBB2/includes/page_header.php on line 477


這是我的includes/functions_post.php 81~86行
[php]<?php
$match_tag = trim($allowed_html_tags[$i]);

if ( preg_match('/^<\/?' . $match_tag . '\b/i', $hold_string) )
{
$tagallowed = true;
}

?>[/php]




這是我的page_header.php 472~479行
[php]<?php
else
{
header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
}
header ('Expires: 0');
header ('Pragma: no-cache');

$template->pparse('overall_header');
?>[/php]
一尾
星球普通子民
星球普通子民
文章: 14
註冊時間: 2004-06-14 03:10

文章 一尾 »

忘了說~~~
我是想定義這個語法!有請大大指導如何定義\r
<a href="xxx">xxx</a>
動機不明
喝咖啡的綠皮猴
喝咖啡的綠皮猴
文章: 1179
註冊時間: 2002-03-06 20:37
來自: GOP (重啟)

文章 動機不明 »

<a href=xxx>xxx</a>

↑這樣就可以了~

" <- 這個只會造成誤判
非官方外掛問題區公告: [必看]請配合發問格式及明確主題發問(2006 02/24更新)
七點要求:
1. 發問前先搜尋,確定沒有重複後再發表
2. 主題要明確
3. 依照發問格式
4. 禁連續推文
5. 請盡量減少使用地方性語言
6. 解決問題後請修改第一篇主題,並感謝曾經幫過你的前輩們 ^^
7. 請不要將檔案內容完整貼出喔! 只要提供問題行及上下各五行就可以了
一尾
星球普通子民
星球普通子民
文章: 14
註冊時間: 2004-06-14 03:10

文章 一尾 »

感謝大大的指導!
依上述<a href=xxx>xxx</a>使用還是會有以上錯誤發生?
不過看文的時候就沒有了,不知有沒有解決的方法呢?
還有~請問大大!在貼這種連接時,通常都是用那種語法呢!(我是新手,語法都不太懂)
主題已鎖定

回到「phpBB 2 安裝與使用」