1

Topic: config.php

How do i call the config.php in my page instead of having to write the sql settings every time want to connect to the database using my other pages in the website?

Re: config.php

that not the issue.. all you got to do is point the the installed folder of punbb......

 define('PUN_ROOT', './');

change the locations of this if you have files outside the forum folder......
here the coding for creating new pages....

<?php
 
define('PUN_ROOT', './'); <------------------------change locations of the punbb folder if you got this file outside of punbb directory...
define('PUN_QUIET_VISIT', 1);
require PUN_ROOT.'include/common.php';
 
//Set the page title here
$page_title = pun_htmlspecialchars($pun_config['o_board_title']) . ' / New page 1';
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'header.php';
require PUN_ROOT.'include/parser.php';
 
?>
your html code goes here..........        
<?php
 
require PUN_ROOT.'footer.php';

real good info is here ...wiki-----  http://wiki.punres.org/Miniportal



Q

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!