Jump to content

Warning: Cannot modify header information - headers already sent by (output star


rameshfaj

Recommended Posts

Warning: Cannot modify header information - headers already sent by (output started at /home/jobspkr/public_html/login.php:9) in /home/jobspkr/public_html/login.php on line 130

 

I got the above error after uploading the pages.How can I get rid of it.

rameshfaj if the girl on the pic is you ill answer it even it was posted a million time and even if it is pined up there ;D

 

;D ;D ;D

 

That's why I answered. But with nowadays predators, you never know. LOL!

 

PHP freaks gives a great explanation at the top of the disscussion board. If you need help after reading it or still get header problems post them! ;)

That was the one that I have tried on the local server only(using tool to make the machine as server).

But now I am facing the problem after the pages are uploaded in the web site.Here that doesnot work and requires a new idea.So I have asked u all for the kind help.

I'm assuming what he means is that you can use a meta tag for a page redirection.  You can do:

<meta http-equiv="refresh" content="{delay};url={url}">

 

As for the header error, you cannot start a session before any kind of output unless you use buffering.  For example:

 

<?php
echo '<h1>Page 1</h1>';
session_start();
?>

 

Will generate an error.

 

<?php
session_start();
echo '<h1>Page 1</h1>';
?>

 

That will not generate an error.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.