Page 1 of 1

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

Posted: Wed Jul 14, 2004 1:27 pm
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.

Posted: Wed Jul 14, 2004 1:32 pm
by feyd
are you including the phpbb config file?

Posted: Wed Jul 14, 2004 1:50 pm
by des.murphy
yes, I think so. Is that a problem?

Posted: Wed Jul 14, 2004 1:52 pm
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.

Posted: Wed Jul 14, 2004 2:19 pm
by feyd
des.murphy wrote:yes, I think so. Is that a problem?
because you're looking for "common." the filename, not "common.php"