I transferred my files via FTP and database to a hosting service. I edited two files, settings.php and sites/default/settings.php whose content was originally the following.
$databases = array ( 'default' => array ( 'default' => array ( 'database' => 'db', 'username' => 'loginname', 'password' => 'passwd', 'host' => 'localhost', 'port' => '', 'driver' => 'mysql', 'prefix' => '', ), ), );
I changed the database name, username, password and host (to yes.domainname.com) in both files.
There is probably something wrong because I get this warning.
Warning: Cannot modify header information - headers already sent by (output started at /web/www/yes.domainname.com/sites/default/settings.php:1) in drupal_send_headers() (line 1044 of /web/www/yes.domainname.com/includes/bootstrap.inc).
Do you know what is wrong?