OK, I'm seeing to much of this error messages, and they are not related to the config files main.inc.php or db.inc.php.
Some script has a new line at the end, after the closing "?>".
Now, I have a proposle, backed up by a mail from Rasmus Leardorf:
http://marc.theaimsgroup.com/?l=php-dev&m=106896382030183&w=2
Why not get ride of the closing "?>" at the end of the scripts?
Lic. Martín Marqués | SELECT 'mmarques' || Centro de Telemática | '@' || 'unl.edu.ar'; Universidad Nacional | DBA, Programador, del Litoral | Administrador