Since the last time I asked a question about this, I’ve read a lot of php chapters and was able to basicly figure out how to make an installer. One little problem though,
when ran, I get a parse error on line 10, which is the line that opens config.php to open up to write. The line is as following:
[code=php]$fp = fopen($file, “w”) or die (“Couldn’t Open a required file, $file.”);
in this case, $file is config.php.
Thanks to anyone who can help.
p.s:
just in case, heres the rest of the file:
[code=php]<?php
$file = “config.php”;
$db = “POST_[database]”;
$dbuser = “POST_[databaseuser]”;
$dbpassword = “POST_[databasepassword]”;
$dbhost = “POST_[databasehost]”;
$apass = “POST_[adminpassword]”;
$auser = “POST_[adminusername]”;
$fp = fopen($file, “w”) or die (“Couldn’t Open a required file, $file.”);
fwrite($fp, “$conn = mysql_connect(“$dbhost”, “$dbuser”, “$dbpassword”));
fwrite($fp, “or die(mysql_error());”);
fwrite($fp, “mysql_select_db(“$db”, $conn) or die(mysql_error());”);
fwrite($fp, “$adminuser = “$auser”;);
fwrite($fp, “$adminpass = “$apass”;);
fclose($fp);
?>
Thanks again ?