-7

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /srv/disk7/1675454/www/abcd1234.eu.pn/private.php:1) in /srv/disk7/1675454/www/abcd1234.eu.pn/private.php on line 4

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /srv/disk7/1675454/www/abcd1234.eu.pn/private.php:1) in /srv/disk7/1675454/www/abcd1234.eu.pn/private.php on line 4

<?php
//User-name: r00t //
//Pass: t00r //
session_start();
ob_start();
error_reporting(0);
@set_time_limit(0);
@ini_set('max_execution_time',0);
@ini_set('output_buffering',0);
?>

Any idea why there is an error on line 4 and how to fix it? I do not know why there is an error, the syntax seems to be correct.

Amal Murali
  • 75,622
  • 18
  • 128
  • 150
  • This section `(output started at /srv/disk7/1675454/www/abcd1234.eu.pn/private.php:1)` is telling you that there is output at line 1, which is the real issue. – Travis Weston May 07 '14 at 14:37
  • he most likely have a BOM or some other invisible character there on that file. – Latheesan May 07 '14 at 14:37

2 Answers2

0

Did you test after deleting the two commented lines?

laurent
  • 418
  • 3
  • 7
-3

Please delete ?> at the end. There is a whitespace after it and it is interpreted as output.

Mantas
  • 4,259
  • 2
  • 27
  • 32