PHP. session_start() [function.session-start]: Cannot send session cookie error
<p>Im having problem in my web where it works perfectly on my local server which is a WAMPSERVER i can run my website completely but after adding to the web server it give me error saying </p>

<p><strong>Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/multisl/public_html/udrivetest/index.php:2) in /home/multisl/public_html/udrivetest/init.php on line 4</strong> </p>

<h2>init.php</h2>

<pre><code>  &lt;?php

ob_start();
session_start();

   mysql_connect("localhost","***","***");
   mysql_select_db('****');

   include 'function/user.func.php';
   include 'function/car.func.php';
   include 'function/image.func.php';

   ?&gt;
</code></pre>

<h2>header1.php</h2>

<pre><code>&lt;head&gt;
  &lt;title&gt;&lt;/title&gt;
  &lt;link href="css/style.css" rel="stylesheet" type="text/css"&gt;

&lt;style type="text/css"&gt;
    &lt;!--
    .style4 {
        font-size: 16px;
        font-weight: bold;
    }
.style5 {
    font-size: 12px
}

.a {
    color:#000000;
    text-decoration:none;
}
--&gt;
&lt;/style&gt;

&lt;/head&gt;
&lt;body&gt;

 &lt;div style="margin-left:10px;"&gt;U Drive.lk&lt;/div&gt;

&lt;div class="style5" style="text-align:right; padding:10px;"&gt;
        Contact Us | Disclaimer | Site Map&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
    &lt;div style="background-image:url(images/Car3.png); border:#FFFFFF; border-style:solid; border-width:2px; border-top:none; border-bottom:none; width:920px; height:450px;  margin-left:auto; margin-right:auto;" align="center"&gt;
        &lt;br/&gt;

        &lt;img src="images/Car6.png" width="920px" height="135px" /&gt;
        &lt;div style="margin-top:-22px; height:22px; margin-left:55px;" align="left"&gt;&lt;a  class="a"&gt;Home&lt;/a&gt;&lt;/div&gt;
        &lt;div style="margin-top:-22px;  height:22px; margin-left:200px;" align="left"&gt;&lt;a  class="a"&gt;Gallery&lt;/a&gt;&lt;/div&gt;
        &lt;div style="margin-top:-22px;  height:22px; margin-left:350px;" align="left"&gt;&lt;a class="a"&gt;Leasing&lt;/a&gt;&lt;/div&gt;
        &lt;div style="margin-top:-22px;  height:22px; margin-left:490px;" align="left"&gt;&lt;a  class="a"&gt;Testimonial&lt;/a&gt;&lt;/div&gt;
        &lt;div style="margin-top:-22px;  height:22px; margin-left:640px;" align="left"&gt;&lt;a  class="a"&gt;Forum&lt;/a&gt;&lt;/div&gt;
        &lt;div style="margin-top:-22px;  height:22px; margin-left:790px;" align="left"&gt;&lt;a class="a"&gt;FAQ&lt;/a&gt;&lt;/div&gt;
    &lt;div style="margin-left:auto; margin-right:auto; margin-top:20px;" &gt;
        &lt;script type="text/javascript"&gt;
            AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','920','height','135','src','Flash/Flash Header2','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','Flash/Flash Header2' ); //end AC code
        &lt;/script&gt;&lt;noscript&gt;&lt;object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="920" height="135"&gt;
            &lt;param name="movie" value="Flash/Flash Header2.swf" /&gt;
            &lt;param name="quality" value="high" /&gt;
            &lt;embed src="Flash/Flash Header2.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="920" height="135"&gt;&lt;/embed&gt;
        &lt;/object&gt;&lt;/noscript&gt;
    &lt;/div&gt;

    &lt;div align="left"&gt;
        &lt;table width="100%" border="0" style="margin-top:10px;"&gt;
            &lt;tr&gt;
                &lt;td width="20%" valign="top" &gt;&lt;div align="left"&gt;&lt;img src="images/Buy_men.png" /&gt; &lt;img src="images/Sell_men.png" /&gt; &lt;img src="images/Rent_men.png" /&gt;&lt;/div&gt;
                  &lt;div style="color:#FFFFFF;margin-top:-90px; width:38px; margin-left:10px;"&gt;&lt;a href="displayVehicle.php" style="color:#FFFFFF;"&gt;Buy&lt;/a&gt;&lt;/div&gt;
                    &lt;div style="color:#FFFFFF;margin-top:-18px; width:38px; margin-left:65px;"&gt;&lt;a href="submitCar.php" style="color:#FFFFFF;"&gt;Sell&lt;/a&gt;&lt;/div&gt;
                    &lt;div style="color:#FFFFFF;margin-top:-20px; width:38px; margin-left:115px;"&gt;&lt;a style="color:#FFFFFF;"&gt;Rent&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;
                &lt;td width="38%"&gt;&lt;fieldset style="background-color:#cccccc"&gt;
                        &lt;span class="style4"&gt;Quick Search&lt;/span&gt;

                    &lt;/fieldset&gt;&lt;/td&gt;
                &lt;td width="42%"&gt;&lt;fieldset style="background-color:#cccccc"&gt;
                        &lt;span class="style4"&gt;Login&lt;/span&gt;
                     &lt;?php include_once('login.php'); ?&gt;
                    &lt;/fieldset&gt;&lt;/td&gt;
            &lt;/tr&gt;
        &lt;/table&gt;
    &lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;

&lt;div style="margin-left:auto; margin-right:auto; width:920px;"&gt;
</code></pre>

<h2>login.php</h2>

<pre><code>  &lt;?php
    if (logged_in()) {
    echo '&lt;br/&gt; &lt;a href="personal_ViewPage.php"&gt; View User Profile &lt;/a&gt; &lt;br/&gt;&lt;a   href="logout.php"&gt;Log Out&lt;/a&gt;';
    } else {
    ?&gt;
    &lt;form action="" method="post"&gt;
        &lt;table width="100%" border="0" style="margin-top:-5px;" &gt;
            &lt;tr&gt;
                &lt;td&gt;&lt;div align="left"&gt;User Name :&lt;/div&gt;&lt;/td&gt;
                &lt;td&gt;&lt;input type="text" name="Quick_Name" size="25"  /&gt;&lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td&gt;&lt;div align="left"&gt;Password :&lt;/div&gt;&lt;/td&gt;
                &lt;td&gt; &lt;input type="text" name="PassWord" size="25"  /&gt;&amp;nbsp;&lt;input type="submit" value="Submit" /&gt;&lt;/td&gt;
            &lt;/tr&gt;
        &lt;/table&gt;
    &lt;/form&gt;
    &lt;a href="forgotPassword.php"&gt;Forgot your password &lt;/a&gt;/ &lt;a href="user_Register.php"&gt;Register User&lt;/a&gt;
    &lt;?php
}
if (isset($_POST['Quick_Name'], $_POST['PassWord'])) {
    $forgotEmail = $_POST['Quick_Name'];
    $login_password = $_POST['PassWord'];

    if (empty($forgotEmail) || empty($login_password)) {
        $errors[] = 'Email and Password required';
    } else {
        $login = login($forgotEmail, $login_password);

        if ($login === false) {
            $errors[] = 'Unable to Log you in';
        }
    }

    if (!empty($errors)) {
        foreach ($errors as $error) {
            echo $error, '&lt;br/&gt;';
        }
    } else {
        $_SESSION['user_id'] = $login;
        header('Location:index.php');
        exit();
    }
     }
    ?&gt;
</code></pre>

<h2>index.php</h2>

<pre><code> &lt;?php include 'init.php'; include 'widgets/header1.php'; ?&gt;

 &lt;div&gt;
     &lt;/div&gt;
&lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p><strong>Please Can any one help me out to solve this problem or give me a clue what I am doing here?</strong></p>

<p>Thanks in Advance</p>
