-3

Error is:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/gopal/public_html/Update.php:1) in /home/gopal/public_html/Update.php on line 2
NREZ
  • 942
  • 9
  • 13
  • Have a look at `/home/gopal/public_html/Update.php`, and stop that from outputting anything? – andrewsi Aug 09 '13 at 13:33
  • This error means you have something output on the page before your `session_start()`. This should be your first line – Sebastien Aug 09 '13 at 13:37

2 Answers2

3

Quick hack? Use Output control.

However, what you really should be looking for is any kind of content that has been rendered before session_start has been called. This method should be the second line of code in your application:

<?php
  session_start();
  /* rest of site */
Brad Christie
  • 100,477
  • 16
  • 156
  • 200
0

"headers already sent" this means that a script outputs to browser something (a space, a character or a BOM element)

make sure your includes files do not echo anything.

If that is verified and you still get the message, then i guess it's a BOM element (usually in utf-8 encoded documents/pages)

andrew
  • 2,058
  • 2
  • 25
  • 33