I have a file called config.php with the contents of:
PHP Code:
$dbloc="localhost";
$dbname="*****_wiki";
$dbuser="*****_wiki";
$dbpass="wiki";
$dbprefix="wiki_";
$sitename="test";
$sitepass="test";
$siturl="test";
# END CONFIG #
and then i put this in another php file
PHP Code:
include 'include/installconfig.php';
and it prints the contents of the file, it is supposed to just use those variables in the script im including it in. thanks
|