Jump to content

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


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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.