Go Back   Web Hosting UK Forums | Linux Windows Dedicated Server and cPanel VPS Hosting Forum > Support > php issues.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-21-2006, 12:20 AM
new member
 
Join Date: Apr 2006
Posts: 1
Default "Cannot modify header information - headers already sent by" Problem

Hi All ,

If you get the following

"Cannot modify header information - headers already sent by...................bla bla bla bla".

Dont get Confused LOL , its not error , its Warning generated due unnecessary whitespaces. in PHP scripts.

How to get rid out of it ?????

>>simply use the following function on the very first line where PHP tag starts

<?php ob_start();

OR

<? ob_start();


Regards

Harshad Mane

BORNFORPHP
Reply With Quote
  #2 (permalink)  
Old 07-14-2006, 01:42 PM
Member
 
Join Date: Jul 2006
Location: >>|World Wide Web|<<
Posts: 35
Send a message via MSN to djpreshit Send a message via Yahoo to djpreshit Send a message via Skype™ to djpreshit
Default

Ohh this is gr8.

I used to rack my heads out what used to happen n often eneded up starting all over again.

Hanx again

~Preshit
Reply With Quote
Reply

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:29 AM.
Copyright 2002-2007 WebHosting.uk.com. All rights reserved.
Web Hosting UK Forum