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!
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
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.