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

RE: [PHP] Cannot modify header information - headers already sent

2003-06-20 Thread Henning Sittler
outputing some text. Henning Sittler www.inscriber.com -Original Message- From: Logan McKinley [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 10:04 AM To: [EMAIL PROTECTED] Subject: [PHP] Cannot modify header information - headers already sent I am having a problem whe

[PHP] Cannot modify header information - headers already sent

2003-06-20 Thread Logan McKinley
I am having a problem when i use an include file to include database connectivity, however if i cut and paste the code out of the include and place it directly into the .php file it works. I am not sure how to figure this problem out. <=== error: Warning: Cannot modify header info