How Do i remove header already send error using php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rawat167
Forum Newbie
Posts: 3
Joined: Thu Jul 22, 2010 4:05 am
Location: Tikamgarh

How Do i remove header already send error using php

Post by rawat167 »

Please tell me how i can remove the error which is header already send.


Pramod Rawat
http://www.bundelkhanddarshan.com/histo ... khand.html
Last edited by rawat167 on Thu Sep 23, 2010 3:51 am, edited 1 time in total.
internet-solution
Forum Contributor
Posts: 220
Joined: Thu May 27, 2010 6:27 am
Location: UK

Re: How Do i remove header already send error using php

Post by internet-solution »

If you post your code then somebody may be able to give you specific help.

Otherwise you can have a look at output control functions in php
oscardog
Forum Contributor
Posts: 245
Joined: Thu Oct 23, 2008 4:43 pm

Re: How Do i remove header already send error using php

Post by oscardog »

That error normally means there has been some sort of output send before you use the header() function. If there is any HTML or any output statements(echo/print etc) it will cause an error.
rawat167
Forum Newbie
Posts: 3
Joined: Thu Jul 22, 2010 4:05 am
Location: Tikamgarh

Re: How Do i remove header already send error using php

Post by rawat167 »

you can use ob_start(); on the top of file to remove this warning.

Pramod Rawat Tikamgarh
http://www.bundelkhanddarshan.com/histo ... khand.html
Last edited by rawat167 on Thu Sep 23, 2010 3:52 am, edited 1 time in total.
abhardwaj847
Forum Newbie
Posts: 2
Joined: Mon Jul 26, 2010 3:42 am

Re: How Do i remove header already send error using php

Post by abhardwaj847 »

<?php

ob_start();

?>
rawat167
Forum Newbie
Posts: 3
Joined: Thu Jul 22, 2010 4:05 am
Location: Tikamgarh

Re: How Do i remove header already send error using php

Post by rawat167 »

How i can integrate paypal with credit card using php i need to put it on the website of bundelkhand Darshan and the url is given below.
http://www.bundelkhanddarshan.com/bundelkhand-cave.html
Post Reply