popmotsy Posted March 21, 2009 Share Posted March 21, 2009 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,,,, Quote Link to comment https://forums.phpfreaks.com/topic/150449-solved-problame-while-runing-script-on-server/ Share on other sites More sharing options...
redarrow Posted March 21, 2009 Share Posted March 21, 2009 post the code as it a session_start() wight space problem. Quote Link to comment https://forums.phpfreaks.com/topic/150449-solved-problame-while-runing-script-on-server/#findComment-790147 Share on other sites More sharing options...
Maq Posted March 21, 2009 Share Posted March 21, 2009 Read this: HEADER ERRORS Quote Link to comment https://forums.phpfreaks.com/topic/150449-solved-problame-while-runing-script-on-server/#findComment-790151 Share on other sites More sharing options...
popmotsy Posted March 21, 2009 Author Share Posted March 21, 2009 can i use ob_start() function,??? is that working,,,,,what was the use of this function,,,, Quote Link to comment https://forums.phpfreaks.com/topic/150449-solved-problame-while-runing-script-on-server/#findComment-790177 Share on other sites More sharing options...
redarrow Posted March 21, 2009 Share Posted March 21, 2009 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 Quote Link to comment https://forums.phpfreaks.com/topic/150449-solved-problame-while-runing-script-on-server/#findComment-790181 Share on other sites More sharing options...
popmotsy Posted March 21, 2009 Author Share Posted March 21, 2009 hii,,,thanks,,,,for replying,,,,this function working,,,,solve all issues,,,,thnks for help////// Quote Link to comment https://forums.phpfreaks.com/topic/150449-solved-problame-while-runing-script-on-server/#findComment-790195 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.