Re: Yet Another "session_start() Cannot send session cache limiter - headers already sent" Question



three-eight-hotel wrote:

I'm somewhat of a newbie to PHP coding,
<snip>
99.9% of the feedback I have seen when dealing with the errors has
referred to having whitespace before the <?php or after the ?>.
<snip>
<?php
<snip>
<?php require_once($_SERVER['DOCUMENT_ROOT'].'/common/includes/
<snip>

Hi Todd,

You're more likely to get sensible answers to your questions if you try to
keep to the point - read this:

http://www.catb.org/~esr/faqs/smart-questions.html

From what you've posted the most likely causes of the problem are:

1) the BOM marker at the start of a UTF-8 encoded source file - you *must*
save your files as ASCII.

2) an auto-prepend file specified in the php.ini or webserver config.

HTH

C.
.



Relevant Pages

  • Re: [PHP] PHP URL issues
    ... You might have a whitespace in any of those variables and the URL stops at ... Subject: [PHP] PHP URL issues ... in 45,000 destinations on Yahoo! ... Get more on shows you hate to love ...
    (php.general)
  • Re: [PHP] PHP URL issues
    ... You might have a whitespace in any of those variables and the URL stops at the first whitespace. ... Subject: [PHP] PHP URL issues ... If you are going to insert variables like $var_name in a string you need to enclose that string with double qoutations marks, ...
    (php.general)
  • Re: limit output to only php print/echo statements?
    ... from php statements, such as print, or echo? ... and there is no leading or trailing whitespace. ...
    (comp.lang.php)
  • Re: [PHP] Cookies and sent headers
    ... sure to not have any whitespace before your <?php opening. ... the output_buffering ini setting might be useful. ... The setting of the cookies happens just at the end of the page. ...
    (php.general)
  • Re: limit output to only php print/echo statements?
    ... and there is no leading or trailing whitespace. ... No. PHP has no control over what's outside the tags. ...
    (comp.lang.php)