Mythyn Posted June 10, 2010 Share Posted June 10, 2010 Hi everyone! I'm learning to code in PHP again after I stopped my last site 5 years ago and I realize I really have forgotten everything! I was hoping to find some much needed help with what is certainly a silly mistake on my part: I have a main site then a PHPbb3 forum, recently installed. I wanted to use the forum member system on my site and greet visitors through it so I used the following script: http://www.phpbb.com/community/viewtopic.php?f=71&t=719055&start=1575 Since I got the script to work I can't get my main site's simple php dynamic page script to work anymore, it only shows the home.php page when I go to www/index.php not www/index.php?page=home... if anyone can see what the mistake I made is that would be of great help.... <?php define('IN_PHPBB', true); $phpbb_root_path = './forum/'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include($phpbb_root_path . 'common.' . $phpEx); // Start session management $user->session_begin(); $auth->acl($user->data); $user->setup(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <title>My website</title> <meta name="description" content="A website." <meta name="keywords" lang="fr,en" content="mykeywords"> <META HTTP-EQUIV="Content-Language" content="en"> <meta name="reply-to" content="[email protected]"> <meta name="category" content="Literature"> <meta name="robots" content="index, follow,all"> <meta name="distribution" content="global"> <meta name="revisit-after" content="7 days"> <meta name="author" lang="en" content="my name"> <meta name="generator" content="Photoshop, Dreamweaver, Bloque note, Paint"> <meta name="identifier-url" content="http://www.mywebsite.com"> <meta name="expires" content="never"> <meta name="Date-Creation-yyyymmdd" content="20100515"> <link rel="shortcut icon" href="http://www.mywebsite.com/favicon.ico"> <link rel='stylesheet' href='goldencss.css' type='text/css' /> </head> <body> <div class="header" id="header"> <div align="center">Website name</div> </div> <div id="Layer3"><?php @include ('./INC/leftmenu.php'); ?></div> <div id="Layer4" class="contents"> <?php if (isset($_GET['page']) && $_GET['page'] != "") { $pg = $_GET['page']; if (file_exists('./INC/'.$page.'.php')) { @include ('./INC/'.$page.'.php'); } elseif (!file_exists('INC/'.$page.'.php')) { @include ('./INC/notfound.php'); } } else { @include ('./INC/home.php'); } ?></div> <div id="Layer5"><?php @include ('./INC/rightmenu.php'); ?></div> <div id="Layer7">... </div> </body> </html> So you can actually see: the page itself is http://www.thegoldensnitch.com/testindex4.php which shows the home page at the center, bu if you go to http://www.thegoldensnitch.com/testindex4.php?page=home (which should also show the exact same page) you get an error message as I set it up in the code above. My forum: http://www.thegoldensnitch.com/forum/ Thank you so much for your help! Best regards, M EDIT: Just realized this could go in either this or third part code forum... I wrote the dynamic pages one but not the phpbb integration one... Where is best? Sorry for the trouble. Link to comment https://forums.phpfreaks.com/topic/204373-dynamic-pages-stopped-working/ Share on other sites More sharing options...
katierosy Posted June 11, 2010 Share Posted June 11, 2010 We do not find any error message on both the site links mentioned. May be you have already found out the issue. Link to comment https://forums.phpfreaks.com/topic/204373-dynamic-pages-stopped-working/#findComment-1070749 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.