Current location: Hot Scripts Forums » Programming Languages » PHP » An unknown warning


An unknown warning

Reply
  #1 (permalink)  
Old 02-12-05, 12:18 AM
Slypher Slypher is offline
Newbie Coder
 
Join Date: Jan 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
An unknown warning

first this is my warning without the line

Warning: Cannot modify header information - headers already sent by (output started at /home/slypher/public_html/script/index.php:7)

but all i have there is a setcookie and the only way to fix it is to take all html above it out. does anyone know another
Reply With Quote
  #2 (permalink)  
Old 02-12-05, 03:24 AM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
a nasty fix is ob_start() at the very begining of the file..
and at the end of the file ob_end_flush();
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Competition form dee19802000 PHP 2 01-27-05 02:48 PM
Warning: session_register(): Cannot send session... imsilver PHP 6 10-31-04 05:18 AM
NEED HELP - Warning: mysql_fetch_array(): supplied argument is not a valid MySQL r ArgonX PHP 4 08-19-04 01:59 PM
Unknown column in 'field list' ??? suburbia PHP 1 05-24-04 01:41 PM
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result ... hukka PHP 1 01-12-04 12:16 AM


All times are GMT -5. The time now is 05:29 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.