Warning: Cannot add header information - headers already sent by (output started at c:\easyphp\www\phppgadmin\config.inc.php:130) in c:\easyphp\www\phppgadmin\lib.inc.php on line 270
Warning: Cannot add header information - headers already sent by (output started at c:\easyphp\www\phppgadmin\config.inc.php:130) in c:\easyphp\www\phppgadmin\lib.inc.php on line 271
I finally found out:
Just a blank line at the end of the config.inc.php sends an header to the navigator so it doesn't accept next headers sent by the next script...
Thanks for help
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I installed phpPgAdmin 2.4.2 on my server called maestro and configures config.inc.php as follow:
$cfgServers[1]['local'] = false;
$cfgServers[1]['host'] = 'maestro';
$cfgServers[1]['port'] = '5432';
$cfgServers[1]['adv_auth'] = true;
$cfgServers[1]['user'] = 'postgres';
$cfgServers[1]['password'] = '';
$cfgServers[1]['only_db'] = '';
and receive this error message :
Warning: Cannot add header information - headers already sent by (output started at c:\easyphp\www\phppgadmin\config.inc.php:130) in c:\easyphp\www\phppgadmin\lib.inc.php on line 270
Warning: Cannot add header information - headers already sent by (output started at c:\easyphp\www\phppgadmin\config.inc.php:130) in c:\easyphp\www\phppgadmin\lib.inc.php on line 271
When I change the config to :
$cfgServers[1]['local'] = true;
$cfgServers[1]['host'] = 'localhost';
$cfgServers[1]['port'] = '5432';
$cfgServers[1]['adv_auth'] = true;
$cfgServers[1]['user'] = 'postgres';
$cfgServers[1]['password'] = '';
$cfgServers[1]['only_db'] = '';
Access is denied, password or login incorrect...
Do you have any idea??
I finally found out:
Just a blank line at the end of the config.inc.php sends an header to the navigator so it doesn't accept next headers sent by the next script...
Thanks for help