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?
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 troubleshooting → 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?
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
PunBB Forums → PunBB 1.2 troubleshooting → config.php
Powered by PunBB, supported by Informer Technologies, Inc.