Location: PHPKode > scripts > roundbase data interface > roundbase-data-interface/install.php
<?php
$pre = "//this file was generated by roundbase 1.0\n";
$database = "\$database = \"{$database}\";\n";
$user = "\$user = \"{$user}\";\n";
$pass = "\$pass = \"{$pass}\";\n";
$host = "\$host = \"{$host}\";\n";
$connection = "\$connect = mysql_connect (\$host,\$user,\$pass) or die(\"Could not connect to the database! \".mysql_error());\n";
$selectdb = "mysql_select_db(\$database,\$connect) or die(\"Could not select database! \".mysql_error());";
$var = "<?php\n{$pre}{$database}{$user}{$pass}{$host}{$connection}{$selectdb}?>";
if ($spinstall == "true"){
$fopen = "{$spdir}/config.php";
} else {
$fopen = "config.php";
}

$file = fopen($fopen, 'w'); 
fwrite($file, $var); 
fclose($file);
?>

<html>
<head><meta http-equiv="refresh" content="1;URL=install2.php" />
		<link href="style.css" rel="stylesheet" type="text/css" media="all">
	</head>
<body>
		<p>
		<?php include "header.php" ?></p>
		<p><b>setting config.php file...Done</b><br>
		</p>
		<h1>
DO NOT TOUCH THE KEYBOARD OR MOUSE AT THIS TIME. IF YOU ARE NOT REDIRECTED CLICK <a href="login2.php">HERE</a></h1>
	</body>
</html><meta http-equiv="refresh" content="1" url="install2.php>
Return current item: roundbase data interface