[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 03-06-2005, 12:51 PM   #1 (permalink)
NamePros Member
 
Join Date: Mar 2005
Location: York, PA
Posts: 39
75.00 NP$ (Donate)

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

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 01:09 PM.
r22pl is offline  
Old 03-06-2005, 01:17 PM   #2 (permalink)
NamePros Member
 
Join Date: Dec 2003
Location: Warrington, UK
Posts: 174
59.00 NP$ (Donate)

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, 01:30 PM   #3 (permalink)
NamePros Member
 
Join Date: Mar 2005
Location: York, PA
Posts: 39
75.00 NP$ (Donate)

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, 01:46 PM   #4 (permalink)
Senior Member
 
Join Date: May 2003
Posts: 2,211
6,170.25 NP$ (Donate)

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, 01:54 PM   #5 (permalink)
NamePros Member
 
Join Date: Mar 2005
Location: York, PA
Posts: 39
75.00 NP$ (Donate)

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, 04:28 AM   #6 (permalink)
NamePros Member
 
Join Date: Dec 2003
Location: Warrington, UK
Posts: 174
59.00 NP$ (Donate)

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, 09:07 AM   #7 (permalink)
Senior Member
 
jroy's Avatar
 
Join Date: May 2004
Location: Connecticut
Posts: 2,898
350.98 NP$ (Donate)

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


Quote:
Originally Posted by adam_uk
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
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, 12:36 PM   #8 (permalink)
NamePros Member
 
Join Date: Mar 2005
Location: York, PA
Posts: 39
75.00 NP$ (Donate)

r22pl is an unknown quantity at this point


Quote:
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 01:46 PM.
r22pl is offline  
Old 03-07-2005, 12:43 PM   #9 (permalink)
Senior Member
 
jroy's Avatar
 
Join Date: May 2004
Location: Connecticut
Posts: 2,898
350.98 NP$ (Donate)

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, 01:22 PM   #10 (permalink)
NamePros Member
 
Join Date: Mar 2005
Location: York, PA
Posts: 39
75.00 NP$ (Donate)

r22pl is an unknown quantity at this point


doesn't work
r22pl is offline  
Old 03-07-2005, 01:24 PM   #11 (permalink)
Senior Member
 
jroy's Avatar
 
Join Date: May 2004
Location: Connecticut
Posts: 2,898
350.98 NP$ (Donate)

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, 01:31 PM   #12 (permalink)
NamePros Member
 
Join Date: Mar 2005
Location: York, PA
Posts: 39
75.00 NP$ (Donate)

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, 01:33 PM   #13 (permalink)
Senior Member
 
jroy's Avatar
 
Join Date: May 2004
Location: Connecticut
Posts: 2,898
350.98 NP$ (Donate)

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, 01:43 PM   #14 (permalink)
NamePros Member
 
Join Date: Mar 2005
Location: York, PA
Posts: 39
75.00 NP$ (Donate)

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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 01:24 PM
Need PHP Forum Script Delete Scripts For Sale 10 10-23-2003 11:12 PM

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 11:52 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85