hi,
need help with my arabic page :
I have the header error when I try to code my login page in utf-8 :
Warning: Cannot send session cookie - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\remchi3\ad_login.php:1) in C:\Program Files\Apache Group\Apache2\htdocs\remchi3\ad_login.php on line 19

Warning: Cannot send session cache limiter - headers already sent (output started at C:\Program Files\Apache Group\Apache2\htdocs\remchi3\ad_login.php:1) in C:\Program Files\Apache Group\Apache2\htdocs\remchi3\ad_login.php on line 19

the line 19 remain to " session_start();"

the php code is :

<?
ob_start(); //stops php from sending the data until we end
?>
<?php require_once('Connections/remConn.php'); ?>
<?php $variable_arrays = array (
'HTTP_POST_VARS',
'HTTP_GET_VARS',
'HTTP_SERVER_VARS'
);
foreach ($variable_arrays as $array){
if (is_array($$array)) {
foreach ($$array as $name=>$value){
$$name = $value;
}
}
}; ?>
<?php
// *** Start the session
session_start();
// *** Validate request to log in to this site.
$FF_LoginAction = $PHP_SELF;
if (isset($QUERY_STRING) && $QUERY_STRING!="") $FF_LoginAction .= "?".$QUERY_STRING;
if (isset($username)) {
$FF_valUsername=$username;
$FF_fldUserAuthorization="";
$FF_redirectLoginSuccess="ad_edit.php";
$FF_redirectLoginFailed="ad_login.php";
$FF_rsUser_Source="SELECT username, password ";
if ($FF_fldUserAuthorization != "") $FF_rsUser_Source .= "," . $FF_fldUserAuthorization;
$FF_rsUser_Source .= " FROM ads WHERE username='" . $FF_valUsername . "' AND password='" . $password . "'";
mysql_select_db($database_remConn, $remConn);
$FF_rsUser=mysql_query($FF_rsUser_Source, $remConn) or die(mysql_error());
$row_FF_rsUser = mysql_fetch_assoc($FF_rsUser);
if(mysql_num_rows($FF_rsUser) > 0) {
// username and password match - this is a valid user
$MM_Username=$FF_valUsername;
session_register("MM_Username");
if ($FF_fldUserAuthorization != "") {
$MM_UserAuthorization=$row_FF_rsUser[$FF_fldUserAuthorization];
} else {
$MM_UserAuthorization="";
}
session_register("MM_UserAuthorization");
if (isset($accessdenied) && false) {
$FF_redirectLoginSuccess = $accessdenied;
}
mysql_free_result($FF_rsUser);
session_register("FF_login_failed");
$FF_login_failed = false;
header ("Location: $FF_redirectLoginSuccess");
exit;
}
mysql_free_result($FF_rsUser);
session_register("FF_login_failed");
$FF_login_failed = true;
header ("Location: $FF_redirectLoginFailed");
exit;
}

ob_end_flush(); //stop buffering and flush everything
?>

When I change the charset to iso-8859-1 the page works very well. any idea ?