Menu

'Warning: Cannot add header information'

Help
2002-10-17
2002-10-18
  • Nobody/Anonymous

    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??

     
    • Nobody/Anonymous

      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

       

Log in to post a comment.

MongoDB Logo MongoDB