fwrite($fp,'<?php');fwrite($fp,"\n"); fwrite($fp,'$host="'.$host.'"; //Host Bazy Danych');fwrite($fp,"\n"); fwrite($fp,'$user="'.$user.'"; //Użytkownik Bazy Danych');fwrite($fp,"\n"); fwrite($fp,'$pass="'.$pass.'"; //Hasło do Bazy Danych');fwrite($fp,"\n"); fwrite($fp,'$baza="'.$base.'"; //Nazwa Bazy Danych');fwrite($fp,"\n"); fwrite($fp,'$nazwa="'.$name.'"; //Nazwa Sklepu(wyświetlana w nagłówku)');fwrite($fp,"\n"); fwrite($fp,'//####');fwrite($fp,"\n"); fwrite($fp,'$polacz=mysql_connect($host, $user , $pass);');fwrite($fp,"\n"); fwrite($fp,'if(!$polacz)');fwrite($fp,"\n"); fwrite($fp,'die("BRAK DOSTEPU DO BAZY");');fwrite($fp,"\n"); fwrite($fp,'mysql_select_db($baza);');fwrite($fp,"\n"); fwrite($fp,'?>');
Początek
<?php $host="Host"; $user="User"; $pass="Pass";Reszte skopiujcie sobie sami