$fp2 = fopen( config.php, "w" ) or die("Couldn\'t open config.php"); fwrite( $fp2, "$configoutput" ); fclose( $fp2 );
why is the created file configphp and not config.php - and how can i fix it?
try
fopen("config.php","w")
=)