Loading a forum (phpbb - not in root) into a page (in root)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
des.murphy
Forum Newbie
Posts: 7
Joined: Wed Jul 14, 2004 1:25 pm

Loading a forum (phpbb - not in root) into a page (in root)

Post by des.murphy »

I want to load the forum into a default page in the root folder of my site. The page name is index.php. I am doing this because I want to be able to edit my main page in one place and have that change refelected through out the site.

When I use a php include I get errors

Warning: main(./extension.inc): failed to open stream: No such file or directory in /home/classof/public_html/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/classof/public_html/forums/index.php on line 25

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

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

Fatal error: Call to undefined function: session_pagestart() in /home/classof/public_html/forums/index.php on line 31
And the script seams to stop.

You might be able to view this better on the site:
http://www.classof04.aboho.com/index.php?page=forums

Thanks for any help you might be able to give me to ressolve this problem.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

are you including the phpbb config file?
des.murphy
Forum Newbie
Posts: 7
Joined: Wed Jul 14, 2004 1:25 pm

Post by des.murphy »

yes, I think so. Is that a problem?
des.murphy
Forum Newbie
Posts: 7
Joined: Wed Jul 14, 2004 1:25 pm

Post by des.murphy »

I thought I had it working, by setting up a page on the forums folder, and then going to that page, but when I change forums, the page reverts to the index.php page. If I have to go and change this, it won't be worth the hassle, not yet anyway.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

des.murphy wrote:yes, I think so. Is that a problem?
because you're looking for "common." the filename, not "common.php"
Post Reply