Re: [PHP] Cannot modify header information - headers already sent by ...

2008-04-21 Thread Jim Lucas
Waynn Lue wrote: Actually, I think I fixed it by moving the style sheets below the instantiation of the facebook client, where I *think* set_user was being called. I'm still curious if it's possible to get stack trace information on errors, though. :) You are probably looking for something li

Re: [PHP] Cannot modify header information - headers already sent by ...

2008-04-21 Thread Waynn Lue
Actually, I think I fixed it by moving the style sheets below the instantiation of the facebook client, where I *think* set_user was being called. I'm still curious if it's possible to get stack trace information on errors, though. :) Waynn On Mon, Apr 21, 2008 at 5:39 PM, Waynn Lue <[EMAIL PRO

Re: [PHP] Cannot modify header information - headers already sent by ...

2008-04-21 Thread Waynn Lue
This is for a facebook app, so it's just public function set_user($user, $session_key, $expires=null) { if (!$this->in_fb_canvas() && (!isset($_COOKIE[$this->api_key . '_user']) || $_COOKIE[$this->api_key . '_user'] != $user)) { $cookies = array();

Re: [PHP] Cannot modify header information - headers already sent by ...

2008-04-21 Thread mike
this also should not be an issue if you have output buffering turned on. PHP is great, it will make sure to send the headers *first* then. but yes, whitespace sucks as well. it makes IE's CSS flake out weird sometimes. there's multiple reasons to write clean code :) > > On Mon, Apr 21, 2008 at 1

Re: [PHP] Cannot modify header information - headers already sent by ...

2008-04-21 Thread paragasu
On Mon, Apr 21, 2008 at 11:37 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Mon, Apr 21, 2008 at 11:33 AM, Waynn Lue <[EMAIL PROTECTED]> wrote: > > I fixed this last time by looking for white space both before and > > after the opening and closing php tags, as a Google search had > > revealed

Re: [PHP] Cannot modify header information - headers already sent by ...

2008-04-21 Thread Daniel Brown
On Mon, Apr 21, 2008 at 11:33 AM, Waynn Lue <[EMAIL PROTECTED]> wrote: > I fixed this last time by looking for white space both before and > after the opening and closing php tags, as a Google search had > revealed. But this time, I've spent an hour running down various > files and not seeing w

[PHP] Cannot modify header information - headers already sent by ...

2008-04-21 Thread Waynn Lue
I fixed this last time by looking for white space both before and after the opening and closing php tags, as a Google search had revealed. But this time, I've spent an hour running down various files and not seeing what the heck is wrong. Here's the essential setup. main.php shared_style.php