wo0zy
Erfahrenes Mitglied
hi ich hab nen script, doch da is irgendwo nen parse error drin, aber wo?
PHP:
<?php
$dbdatafile="dbdata.txt";
if($do=="write"){
if(!file_exists($dbdatafile)){
@fopen($dbdatafile,"w+");
$dbdats=$conn_name."\n".$conn_pass."\n".$conn_host."\n".$conn_dbase;
fputs=($dbdatafile,$dbdats);
fclose($dbdatafile);
}
}else{
echo "<center>please fill this formular for the correct work of this board!</center>";
echo "<form action='".$PHP_SELF."' method='post'><center>
<input type='text' name='conn_name' maxlength='30'>
<input type='text' name='conn_pass' maxlength='30'>
<input type='text' name='conn_host' maxlength='30'>
<input type='text' name='conn_dbase' maxlength='30'>
<input type='hidden' name='do' value='write'>
</center></form>";
}
?>