Jump to content

[SOLVED] problame while runing script on server


popmotsy

Recommended Posts

hi to all....

 

 

i just upload my project at my host,,,after login i got an warning mesg,,,

 

Warning: Cannot modify header information - headers already sent by (output started at /home/askuocom/public_html/khiani.co.in/khiani/cpv/cpv/user/include/connection.php:7) in /home/askuocom/public_html/khiani.co.in/khiani/cpv/cpv/user/login.php on line 15

 

Warning: Cannot modify header information - headers already sent by (output started at /home/askuocom/public_html/khiani.co.in/khiani/cpv/cpv/user/include/connection.php:7) in /home/askuocom/public_html/khiani.co.in/khiani/cpv/cpv/user/login.php on line 16

 

Warning: Cannot modify header information - headers already sent by (output started at /home/askuocom/public_html/khiani.co.in/khiani/cpv/cpv/user/include/connection.php:7) in /home/askuocom/public_html/khiani.co.in/khiani/cpv/cpv/user/login.php on line 17

 

Warning: Cannot modify header information - headers already sent by (output started at /home/askuocom/public_html/khiani.co.in/khiani/cpv/cpv/user/include/connection.php:7) in /home/askuocom/public_html/khiani.co.in/khiani/cpv/cpv/user/login.php on line 18

 

 

what was that,,,,what is the solution for that,,,,

does work when you no how, but you should correct the header problems.

<?php ob_start(); <<< //start off page.
session_start(); // start a session.

ob_flush(); //<<< end off page.
?>

 

 

any html or any think before the session_start() gives a error.

 

also any wight spaces from <?php <<< to  <? <<<< bottom also give a error message.

 

to stop a error you use the if statement, or a condition that is ending with a brace}

 

now read the header info link as provided.

 

read about the ob_start() function.

http://uk.php.net/ob_start

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.