Making phpBB2 working with PHP5决策phpbb2工作与php5
Officially, phpBB 2 (as of this writing, up to version 2.0.17) is not supporting PHP 5.正式, phpbb 2 (截止本文件的编写,直至版本2.0.17 )是不支持PHP 5中。 If you install PHP 5, and use it to run phpBB, you will encounter the following symptoms and errors:如果您安装了PHP 5中,并用它来运行phpbb ,您会遇到下列症状和错误:
- You cannot post message - When you want to post new topic or reply to a topic, after writing your message, when you click “Submit”, a blank page or screen or error message is shown with address bar showing posting.php, instead of posting confirmation message.你不能发帖子-当您要张贴新话题或答复的一个话题后,编写您的信息,当您点击“提交” ,一个空白页或屏幕或错误讯息显示与地址栏中显示p osting.php,而不是发布确认邮件。
- You unable to search - When you want to search by clicking oh “Search”, no search results are been returned, or a black page or screen, or error message is shown.你无法搜索-当你要搜索的按一下哦“搜索” ,没有搜索结果被退回,或一个黑色的网页或屏幕上,或错误讯息显示。
To enable PHP 5 to work properly with phpBB, some changes to the phpBB source code needs to be done.使PHP 5中工作,妥善phpbb一些变化,向phpbb的源代码需要做的事情。 Just follow steps as below:只需按照以下的步骤如下:
OPEN打开
admin/admin_ug_auth.php政府当局/ admin_ug_auth.phpFIND查找
if( $forum_access[$i][$auth_field] == AUTH_ACL && isset($change_acl_list[$forum_id][$auth_field]) )如果美元( forum_access [元一] [元auth_field ] == auth_acl & & isset ( $ change_acl_list [ $ forum_id ] [元auth_field ] ) )REPLACE WITH替换
if( $forum_access[$i][$auth_field] == AUTH_ACL && isset($change_acl_list[$forum_id]) )如果美元( forum_access [元一] [元auth_field ] == auth_acl & & isset ( $ change_acl_list [ $ forum_id ] ) )FIND查找
( !isset($auth_access[$forum_id][$auth_field]) && !empty($change_acl_list[$forum_id][$auth_field]) ) ) || ( ! isset ( $ auth_access [ $ forum_id ] [元auth_field ] ) & & !空美元( change_acl_list [ $ forum_id ] [元auth_field ] ) ) ) | |REPLACE WITH替换
( !isset($auth_access[$forum_id][$auth_field]) && empty($change_acl_list[$forum_id][$auth_field]) ) ) || ( ! isset ( $ auth_access [ $ forum_id ] [元auth_field ] ) & &空美元( change_acl_list [ $ forum_id ] [元auth_field ] ) ) ) | |
Finally, some changes are needed so that functions that get called with functions as parameters are not called ‘by reference’ with functions:最后,一些有需要改变,使职能得到所谓的职能与作为参数没有所谓的'参考'与职能:
OPEN打开
includes/functions_post.php包括/ functions_post.phpFIND查找
function submit_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id, &$topic_type, &$bbcode_on, &$html_on, &$smilies_on, &$attach_sig, &$bbcode_uid, &$post_username, &$post_subject, &$post_message, &$poll_title, &$poll_options, &$poll_length)功能submit_post ( $模式,与post_data元,与美元的讯息,与元元,元& forum_id , &元topic_id , &元post_id , &元poll_id , &元topic_type , &元bbcode_on , &元html_on , &元smilies_on , & $ attach_sig , &元bbcode_uid , &元post_username , &元post_subject , &元post_message , &元poll_title , &元poll_options , &元poll_length )REPLACE WITH替换
function submit_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id, &$topic_type, &$bbcode_on, &$html_on, &$smilies_on, &$attach_sig, &$bbcode_uid, $post_username, $post_subject, $post_message, $poll_title, &$poll_options, &$poll_length)功能submit_post ( $模式,与post_data元,与美元的讯息,与元元,元& forum_id , &元topic_id , &元post_id , &元poll_id , &元topic_type , &元bbcode_on , &元html_on , &元smilies_on , & $ attach_sig , &元bbcode_uid元, post_username元, post_subject元, post_message元, poll_title , &元poll_options , &元poll_length )OPEN打开
includes/functions_search.php包括/ functions_search.phpFIND查找
function clean_words($mode, &$entry, &$stopword_list, &$synonym_list)功能clean_words ( $模式,与美元进入, & $ stopword_list , &元synonym_list )REPLACE WITH替换
function clean_words($mode, $entry, &$stopword_list, &$synonym_list)功能clean_words ( $模式,美元入境, & $ stopword_list , &元synonym_list )FIND查找
function split_words(&$entry, $mode = ‘post’)功能split_words ( &元,进入元,模式= '后' )REPLACE WITH替换
function split_words($entry, $mode = ‘post’)功能split_words ( $入境元,模式= '后' )
For the above, the changes involved are some parameters have been stripped off the “&” sign.对于上述情况,更改所涉及的一些参数已经剥夺了小康“ & ”的迹象。
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要说明 :这是一个机器翻译网页是“按原样”提供的担保。 Machine translation may be difficult to understand.机器翻译可能很难理解。 Please refer to请参阅 original English article原来的英语文章 whenever possible.只要有可能。
Share and contribute or get technical support and help at分享和贡献,或取得技术的支持和帮助,在 My Digital Life Forums 我的数字生活论坛 . 。
Related Articles相关文章
- Install phpBB 2 in Windows XP running on Apache 2, PHP 5 and MySQL 4安装phpbb 2在Windows XP上运行的Apache 2 , PHP 5中和MySQL 4
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 5安装Web服务器在FreeBSD的6.0与2.2的Apache , MySQL 5.0的和PHP 5 -第5部分
- Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 - Part 3安装Web服务器在Windows XP的Apache2 , php5和mysql4 -第3部分
- Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 - Part 1安装Web服务器在Windows XP的Apache2 , php5和mysql4 -第1部分
- Job Hunting - Working in Google or Microsoft求职-工作在微软还是G oogle
- Using phpMyAdmin for Effective MySQL Management in Windows XP使用phpmyadmin有效MySQL的管理在Windows XP
- Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 - Part 4安装Web服务器在Windows XP的Apache2 , php5和mysql4 -第4部分
- Google Browser Sync for Firefox Review by iTWire Google的浏览器同步Firefox的审查itwire
- Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 - Part 2安装Web服务器在Windows XP的Apache2 , php5和mysql4 -第2部分
- No Drive Letter for USB or Firewire Drive没有磁碟机代号为USB或FireWire驱动器

































July 25th, 2006 03:15 2006年7月25日03:15
It doesn’t work.它是行不通的。 Shame.羞耻。
April 17th, 2007 16:03 2007年4月17日16时03分
I think, that is interesting for all.我认为,有趣的是,为所有。
August 31st, 2007 07:26 2007年8月31日7时26分
Hello喂
G’night g'night
September 28th, 2007 02:40 2007年9月28日2时40分
Amerikanische Firma „ACG Logistics“ sucht nach Mitarbeiter in Europa fuer die Arbeit im Logistikbereich. amerikanische事务所“ acg物流” sucht nach图书馆管理员在欧罗巴fuer模具劳动即时通讯logistikbereich 。 Interessanter Job mit guter Verdienstmoeglichkeit. interessanter就业麻省理工学院guter verdienstmoeglichkeit 。
[b]Schicken Sie bitte Ihre Bewerbung an [ B ]中schicken女士bitte ihre bewerbung 1 info@acglogistics.biz [/b] [ / b ]上
November 15th, 2007 22:28 2007年11月15日22时28分
download poker gratuito… 下载扑克gratuito …
Ogni software Poker casino poker… ogni软件扑克博彩赌场扑克…
December 3rd, 2007 21:28 2007年12月3日21时28分
try this for working phpbb2 with php5试试这个工作phpbb2与php5
extension.inc
$HTTP_GET_VARS=$_GET;元http_get_vars = $ _get ;
$HTTP_POST_VARS=$_POST;元http_post_vars =全局变量$ _POST ;
$HTTP_COOKIE_VARS=$_COOKIE;元http_cookie_vars = $ _cookie ;
that’s all… works now fine with php5这一切…工程,现在的罚款与php5
July 15th, 2008 19:18 2008年7月15日19时18分
Hi everybody每个人都喜
Just trapped on a little tool to slice website images.只是被困在一个小的工具,切片网站的图片。
Quick in preparing ready html from simple single-image site design.快速在准备就绪的HTML ,从简单的单一的形象,网站设计。
Program is rather crappy and cheap (especially comparing to similar function in PhotoShop).程序是相当crappy和廉价的(尤其是比较类似的功能在Photoshop ) 。
But there is a trick!但有一个把戏! Just look what books come as a bonus:单看什么书来作为奖金:
Search Engine Optimization: An Hour a Day搜索引擎优化: 1小时1天
Web Design in a Nutshell, 3rd Edition网页设计在一个总括而言,第3版
Webmaster in a Nutshell, 3rd Edition网站管理员在总括而言,第3版
etc…等…
I wonder how $270 priced books can be sold for just 20 dollars…我不知道如何定价270元的书籍可以出售,仅20美元…
Anyway here’s link:无论如何,这里的链接: http://www.sliceimage.com/
Hope these books will help you as well.希望这些书籍将帮助您以及。
Regards,关心,
Mark马克