NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page inserting a phpbb2 forum in a php page using includes

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 03-06-2005, 01:51 PM THREAD STARTER               #1 (permalink)
NamePros Member
Join Date: Mar 2005
Location: York, PA
Posts: 39
r22pl is an unknown quantity at this point
 



Question phpbb in a php site using includes


i keep getting errors when i try different ways to do this
hopefully someone can help

i am working on a website in PHP, and i am trying to use an include script to get my phpBB board, located at forums/index.php, inside of the site with an include

i've been trying for a while and i keep getting errors...

the file is forums.php located in the root, and in it, it says:

Quote:
<?
include("includes/header.php");

include("forums/index.php");

include("includes/footer.php");
?>
but, when i go to forums.php, it gives me a bunch of errors:

Quote:
Warning: main(./extension.inc): failed to open stream: No such file or directory in /home/r22pl/public_html/r22pl/forums/index.php on line 25

Warning: main(./extension.inc): failed to open stream: No such file or directory in /home/r22pl/public_html/r22pl/forums/index.php on line 25

Warning: main(): Failed opening './extension.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/r22pl/public_html/r22pl/forums/index.php on line 25
????: NamePros.com http://www.namepros.com/programming/73667-inserting-phpbb2-forum-php-page-using.html

Warning: main(./common.): failed to open stream: No such file or directory in /home/r22pl/public_html/r22pl/forums/index.php on line 26

Warning: main(./common.): failed to open stream: No such file or directory in /home/r22pl/public_html/r22pl/forums/index.php on line 26

Warning: main(): Failed opening './common.' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/r22pl/public_html/r22pl/forums/index.php on line 26

Fatal error: Call to undefined function: session_pagestart() in /home/r22pl/public_html/r22pl/forums/index.php on line 31
any help?
Last edited by r22pl; 03-06-2005 at 02:09 PM.
r22pl is offline  
Old 03-06-2005, 02:17 PM   #2 (permalink)
NamePros Member
Join Date: Dec 2003
Location: Warrington, UK
Posts: 174
Boardhost is on a distinguished road
 



when you use the include the index.php is looking for /extension.inc instead of /forums/extension.inc or summat like that, there should be a variable in the index.php file for the forums, change that I think

Danny
__________________
www.Scene-Power.com - ***YOUR DEDICATED SERVER SOLUTIONS***
Boardhost is offline  
Old 03-06-2005, 02:30 PM THREAD STARTER               #3 (permalink)
NamePros Member
Join Date: Mar 2005
Location: York, PA
Posts: 39
r22pl is an unknown quantity at this point
 



ok i changed the variable, it was set to ./ and i changed it to forums/

now the forums came up, but above them, i got more errors:

Quote:

Warning: Cannot modify header information - headers already sent by (output started at /home/r22pl/public_html/r22pl/includes/header.php:4) in /home/r22pl/public_html/r22pl/forums/includes/sessions.php on line 188

Warning: Cannot modify header information - headers already sent by (output started at /home/r22pl/public_html/r22pl/includes/header.php:4) in /home/r22pl/public_html/r22pl/forums/includes/sessions.php on line 189

Warning: Cannot modify header information - headers already sent by (output started at /home/r22pl/public_html/r22pl/includes/header.php:4) in /home/r22pl/public_html/r22pl/forums/includes/page_header.php on line 475

Warning: Cannot modify header information - headers already sent by (output started at /home/r22pl/public_html/r22pl/includes/header.php:4) in /home/r22pl/public_html/r22pl/forums/includes/page_header.php on line 477

Warning: Cannot modify header information - headers already sent by (output started at /home/r22pl/public_html/r22pl/includes/header.php:4) in /home/r22pl/public_html/r22pl/forums/includes/page_header.php on line 478
r22pl is offline  
Old 03-06-2005, 02:46 PM   #4 (permalink)
Senior Member
Join Date: May 2003
Posts: 2,187
adam_uk is a jewel in the roughadam_uk is a jewel in the roughadam_uk is a jewel in the rough
 


Breast Cancer
http://www.phpbb.com/kb/article.php?article_id=143

this will let you connect to phpbb and will resolve the extention errors etc etc and should help in some way
adam_uk is offline  
Old 03-06-2005, 02:54 PM THREAD STARTER               #5 (permalink)
NamePros Member
Join Date: Mar 2005
Location: York, PA
Posts: 39
r22pl is an unknown quantity at this point
 



doesnt really help, maybe i just dont understand it

if someone could explain it easier that would be appreciated
r22pl is offline  
Old 03-07-2005, 05:28 AM   #6 (permalink)
NamePros Member
Join Date: Dec 2003
Location: Warrington, UK
Posts: 174
Boardhost is on a distinguished road
 



The bit in the code that creates the session needs to be at the top of the page now (with the includes) You will have to find the create session bit in the forum index.php and put this righ at the very top of the include page above anything else then delete the session bit from inside the forums index.php page (keep a backup just incase though)

Danny
__________________
www.Scene-Power.com - ***YOUR DEDICATED SERVER SOLUTIONS***
Boardhost is offline  
Old 03-07-2005, 10:07 AM   #7 (permalink)
Senior Member
 
jroy's Avatar
Join Date: May 2004
Location: Connecticut
Posts: 2,804
jroy has much to be proud ofjroy has much to be proud ofjroy has much to be proud ofjroy has much to be proud ofjroy has much to be proud ofjroy has much to be proud ofjroy has much to be proud ofjroy has much to be proud ofjroy has much to be proud of
 



Originally Posted by adam_uk
http://www.phpbb.com/kb/article.php?article_id=143
????: NamePros.com http://www.namepros.com/showthread.php?t=73667

this will let you connect to phpbb and will resolve the extention errors etc etc and should help in some way
i dont think thats what he is looking for, why are you trying to make it appear on forums.php anyway? why not just send your visitors to forum/index.php?
__________________
Free Arcade Games
jroy is offline  
Old 03-07-2005, 01:36 PM THREAD STARTER               #8 (permalink)
NamePros Member
Join Date: Mar 2005
Location: York, PA
Posts: 39
r22pl is an unknown quantity at this point
 



Originally Posted by jroy
i dont think thats what he is looking for, why are you trying to make it appear on forums.php anyway? why not just send your visitors to forum/index.php?
no, its an include file. I'm trying to get the forum inside the page with all my headers and stuff
Last edited by r22pl; 03-07-2005 at 02:46 PM.
r22pl is offline  
Old 03-07-2005, 01:43 PM   #9 (permalink)
Senior Member
 
jroy's Avatar
Join Date: May 2004
Location: Connecticut
Posts: 2,804
jroy has much to be proud ofjroy has much to be proud ofjroy has much to be proud ofjroy has much to be proud ofjroy has much to be proud ofjroy has much to be proud ofjroy has much to be proud ofjroy has much to be proud ofjroy has much to be proud of
 



ok, well you can accomplish that without having to include in in forum.php, just edit the overall_header.tpl and overall_footer.tpl files in the subsilver folder
__________________
Free Arcade Games
jroy is offline  
Old 03-07-2005, 02:22 PM THREAD STARTER               #10 (permalink)
NamePros Member
Join Date: Mar 2005
Location: York, PA
Posts: 39
r22pl is an unknown quantity at this point
 



doesn't work
r22pl is offline  
Old 03-07-2005, 02:24 PM   #11 (permalink)
Senior Member
 
jroy's Avatar
Join Date: May 2004
Location: Connecticut
Posts: 2,804
jroy has much to be proud ofjroy has much to be proud ofjroy has much to be proud ofjroy has much to be proud ofjroy has much to be proud ofjroy has much to be proud ofjroy has much to be proud ofjroy has much to be proud ofjroy has much to be proud of
 



what part of it doesnt work?
__________________
Free Arcade Games
jroy is offline  
Old 03-07-2005, 02:31 PM THREAD STARTER               #12 (permalink)
NamePros Member
Join Date: Mar 2005
Location: York, PA
Posts: 39
r22pl is an unknown quantity at this point
 



i just want a way to have a file and be able to include the forum inside it, i know something like that is done in php-nuke

if i cant figure it out, its alright ill just make it in like a different window or something
r22pl is offline  
Old 03-07-2005, 02:33 PM   #13 (permalink)
Senior Member
 
jroy's Avatar
Join Date: May 2004
Location: Connecticut
Posts: 2,804
jroy has much to be proud ofjroy has much to be proud ofjroy has much to be proud ofjroy has much to be proud ofjroy has much to be proud ofjroy has much to be proud ofjroy has much to be proud ofjroy has much to be proud ofjroy has much to be proud of
 



it wont work unless you use an iframe because when ever you click a link from the included page it will open up forums/viewforum.php
__________________
Free Arcade Games
jroy is offline  
Old 03-07-2005, 02:43 PM THREAD STARTER               #14 (permalink)
NamePros Member
Join Date: Mar 2005
Location: York, PA
Posts: 39
r22pl is an unknown quantity at this point
 



alright then i wont worry about it

thanks for the help
r22pl is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
HOWTO: Install the Apache Web Server, Perl, PHP, and MySQL on Windows deadserious Webmaster Tutorials 96 05-27-2007 02:24 PM
Prime .INFO Sale - Part Five - 122 Domains Including StockResearch.info Duke Domains For Sale - Make Offer 2 02-22-2004 06:07 PM
Giant .INFO SALE Part FOUR - 98 Nice Ones! Duke Domains For Sale - Make Offer 2 01-12-2004 08:39 AM
Developed Forum, Listed on first page of google and yahoo! Teddy Domains For Sale - Make Offer 7 11-14-2003 07:49 AM
Need PHP Forum Script Delete Scripts For Sale 10 10-24-2003 12:12 AM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 09:06 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger