[FX.php List] Bad apostrophe character confounds FMP

Troy Meyers tcmeyers at troymeyers.com
Mon Dec 10 15:14:46 MST 2007


Jonathan,

Anything that must be in the header must go out before anything that is page content is "printed". Session start is actually setting up a cookie, and cookie data is transmitted in the header. None of that is visible in a normal "View Source" window of a browser. Anything that can be seen in "View Source" must be after the DOCTYPE declaration. Header items must come before.

Similarly, if you want to do special caching control using PHP's header() function, that must be done before any text/html output to the page.

-Troy


> Kevin,
> 
> Thanks.
> 
> Per an earlier post, this turned out to be the culprit. Thanks Troy.
> 
> Now about that standard...where does php fit into this?
> 
> The "other" standard says that ob_start() and session_start() have to 
> be the very first lines in the code.
> 
> How do we do both?
> 
> Jonathan



More information about the FX.php_List mailing list