1 頁 (共 1 頁)

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

發表於 : 2004-06-18 00:06
一尾
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]

發表於 : 2004-06-18 00:09
一尾
忘了說~~~
我是想定義這個語法!有請大大指導如何定義\r
<a href="xxx">xxx</a>

發表於 : 2004-06-18 00:51
動機不明
<a href=xxx>xxx</a>

↑這樣就可以了~

" <- 這個只會造成誤判

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