php headers

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
jose1
Forum Newbie
Posts: 4
Joined: Thu Jan 06, 2011 1:23 am

php headers

Post by jose1 »

Hey guys,

I have a problem, i'm using ob_start to send multiples headers and it work but the problem is that my metada is not being sent, when i remove the ob_start it gets sent. Is there a way i can allow more info to be sent with ob_start? or should i use other methods to redirect to pages? i dont want to use javascript or meta http because they are not very reliable is there any other way?
Thanks for help.
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: php headers

Post by AbraCadaver »

jose1 wrote:Hey guys,

I have a problem, i'm using ob_start to send multiples headers and it work but the problem is that my metada is not being sent, when i remove the ob_start it gets sent. Is there a way i can allow more info to be sent with ob_start? or should i use other methods to redirect to pages? i dont want to use javascript or meta http because they are not very reliable is there any other way?
Thanks for help.
Need code.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
brothaofdes
Forum Newbie
Posts: 21
Joined: Thu Jan 20, 2011 10:05 am

Re: php headers

Post by brothaofdes »

At the bottom of you php page that begins with the ob_start();, put ob_end_flush();
jose1
Forum Newbie
Posts: 4
Joined: Thu Jan 06, 2011 1:23 am

Re: php headers

Post by jose1 »

Thanks a lot for reply, however, i tried it and still doesn't work. Don't know what i should do next
brothaofdes
Forum Newbie
Posts: 21
Joined: Thu Jan 20, 2011 10:05 am

Re: php headers

Post by brothaofdes »

post your code (use the php button -^). We may see the issue if we can see the code.

Please remove any user information before submitting though.
Post Reply