honesty Im realy frustrated,
Im tring to set this seestion_start() function for like nore then week!

and i keep get the 'Header alredy sent =.. and ther is nothing above the function call.!

*Im saving the file under Utf-8 Incoding! alredy checked for hidden chars..

check this out..

my code starts like that:

<?php
session_start();
//###############################################################
// (C) All Right Reserved Art-Guide.co.il 2008-2009
//###############################################################
//-----------------------------------------------&#1492;&#1490;&#1491;&#1512;&#1493;&#1514; &#1512;&#1488;&#1513;&#1493;&#1504;&#1497;&#1493;&#1514;------------------------------------------------

 $string = htmlspecialchars($_POST['string']);  // Enable to use " ' " to avoid META imjsections.

//-------------------------------------------------&#1492;&#1490;&#1491;&#1512;&#1493;&#1514; &#1490;&#1500;&#1493;&#1489;&#1488;&#1500;&#1497;&#1493;&#1514;---------------------------------------------------


//-----------------------------------------------&#1514;&#1495;&#1497;&#1500;&#1514; &#1511;&#1493;&#1491;------------------------------------------------
?>
<html dir = rtl>
	<head>

and the error goes like that:
*noteic that the script inform that header alredy sent on like 1! 0_o

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/fishown/domains/fishown.spd.co.il/public_html/index.php:1) in /home/fishown/domains/fishown.spd.co.il/public_html/index.php on line 2

thanks =\

    Make sure that your editor is either saving the file as plain ASCII text or else as UTF-8 without the BOM (Byte Order Mark).

      <?
      session_start();
      error_reporting(E_ALL);
      ini_set("display_errors", 1);

      // and you will see what is the real problem.

      //maybe a not posted value if get used, then the warning message souse a text before a session_start();

      //lets check that POST, and is it isset then use the htmlspecialchars...

      fishown;10891576 wrote:

      honesty Im realy frustrated,
      Im tring to set this seestion_start() function for like nore then week!

      and i keep get the 'Header alredy sent =.. and ther is nothing above the function call.!

      *Im saving the file under Utf-8 Incoding! alredy checked for hidden chars..

      check this out..

      my code starts like that:

      <?php
      session_start();
      //###############################################################
      // (C) All Right Reserved Art-Guide.co.il 2008-2009
      //###############################################################
      //-----------------------------------------------&#1492;&#1490;&#1491;&#1512;&#1493;&#1514; &#1512;&#1488;&#1513;&#1493;&#1504;&#1497;&#1493;&#1514;------------------------------------------------
      
       $string = htmlspecialchars($_POST['string']);  // Enable to use " ' " to avoid META imjsections.
      
      //-------------------------------------------------&#1492;&#1490;&#1491;&#1512;&#1493;&#1514; &#1490;&#1500;&#1493;&#1489;&#1488;&#1500;&#1497;&#1493;&#1514;---------------------------------------------------
      
      
      //-----------------------------------------------&#1514;&#1495;&#1497;&#1500;&#1514; &#1511;&#1493;&#1491;------------------------------------------------
      ?>
      <html dir = rtl>
      	<head>
      

      and the error goes like that:
      *noteic that the script inform that header alredy sent on like 1! 0_o

      Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/fishown/domains/fishown.spd.co.il/public_html/index.php:1) in /home/fishown/domains/fishown.spd.co.il/public_html/index.php on line 2

      thanks =[/QUOTE]

        An empty line before <? is enought to cause the error you are getting.

          Write a Reply...