session_start () sorunu

0 Cevap php

Bugün benim arkadaşlarından biri onun defterine bir sorun vardı. Biz bir şey dışında gayet iyi çalışıyordu, küçük bir php odaklı defterini kullanın: mesajlarının sınırına ulaşmıştı.

So what i did is edit the blog file and change the following setting: //Maximum entry stored in data file $max_record_in_data_file = 1800;

Ben bu olsa yaptım an, bir şey çok yanlış gitti. Ben sunucu üzerinde dosya geri yüklenen ve şu var:

Uyarı: session_start () [function.session-start]: oturum çerezi gönderilemiyor - zaten tarafından gönderilen başlıklar (çıkışında E başladı: \ inetpub \ vhosts \ trilogianocturnus.com \ httpdocs guestbook.php \: 1) E: \ inetpub \ vhosts \ trilogianocturnus.com \ httpdocs \ guestbook.php hattında 95

Ben, bu ne bilmiyorum ben php için çok yeni değilim, ama anladığım kadarıyla, zaten önce session_start tarayıcı tarafından çağrıldığını şey demektir

The page is located at: http://trilogianocturnus.com/guestbook.php

Şöyle başkanı önce kodu:

<? 
/*-----------------------------------------------------
COPYRIGHT NOTICE
Copyright (c) 2001 - 2008, Ketut Aryadana
All Rights Reserved

Script name : ArdGuest
Version : 1.8
Website : http://www.promosi-web.com/script/guestbook/
Email : aryasmail@yahoo.com.au
Download URL : 
   - http://www.promosi-web.com/script/guestbook/download/
   - http://www.9sites.net/download/ardguest_1.8.zip

This code is provided As Is with no warranty expressed or implied. 
I am not liable for anything that results from your use of this code.
------------------------------------------------------*/

//--Change the following variables

//Title of your guestbook
  $title = "Guestbook Nocturnus";
//Change "admin" with your own password. It's required when you delete an entry
  $admin_password = "***";
//Enter your email here
  $admin_email = "***";
//Your website URL
  $home = "http://www.trilogianocturnus.com/main.html";
//Send you an email when someone add your guestbook, YES or NO
  $notify = "YES";
//Your Operating System
//For Windows/NT user : WIN
//For Linux/Unix user : UNIX
  $os = "WIN";
//Maximum entry per page when you view your guestbook
  $max_entry_per_page = 10;
//Name of file used to store your entry, change it if necessary
  $data_file = "ardgb18.dat";
//Maximum entry stored in data file
  $max_record_in_data_file = 1800;
//Maximum entries allowed per session, to prevent multiple entries made by one visitor
  $max_entry_per_session = 10;
//Enable Image verification code, set the value to NO if your web server doesn't support GD lib
  $imgcode = "YES";
//Color & font setting
  $background = "#000";
  $table_top = "#000";
  $table_content_1a = "#090909";
  $table_content_1b = "#000000";
  $table_content_2a = "#090909";
  $table_content_2b = "#000000";
  $table_bottom = "#000";
  $table_border = "#1f1f1f";
  $title_color = "#9f0000";
  $link = "#9f0000";
  $visited_link = "#9f0000";
  $active_link = "#9f0000";
  $font_face = "verdana";
  $message_font_face = "arial";
  $message_font_size = "2";

//-- Don't change bellow this line unless you know what you're doing

$do = isset($_REQUEST['do']) ? trim($_REQUEST['do']) : "";
$id = isset($_GET['id']) ? trim($_GET['id']) : "";
$page = isset($_GET['page']) ? $_GET['page'] : 1;
$self = $_SERVER['PHP_SELF'];

if (!file_exists($data_file)) {
    echo "<b>Error !!</b> Can't find data file : $data_file.<br>";
 exit;
} else {
 if ($max_record_in_data_file != "0") {
  $f = file($data_file);
  rsort($f);
  $j = count($f);
  if ($j > $max_record_in_data_file) {
   $rf = fopen($data_file,"w");
            if (strtoupper($os) == "UNIX") {
            if (flock($rf,LOCK_EX)) {
                  for ($i=0; $i<$max_record_in_data_file; $i++) {
                      fwrite($rf,$f[$i]);      
         }
                  flock($rf,LOCK_UN);
            }
            } else {
               for ($i=0; $i<$max_record_in_data_file; $i++) {
                  fwrite($rf,$f[$i]);      
            }
         }
   fclose($rf);
  }
 }
}
session_start();
$newline = (strtoupper($os) == "WIN") ? "\r\n" : "\n";
switch ($do) {
case "":
   $record = file($data_file);
   rsort($record);
   $jmlrec = count($record);
?>

Ben tabii, şimdi burada isthe komik kısmı, güvenlik için şifrenizi ve e-kaldırdık.

Bu hata, ben orada kurma değişti anı oluyor başladı, ama (ben bunu test etmek 11800 olarak değiştirdim) geri 1800 için geri dönmek için çalıştı, o hala bana hata verir.

Bu ne herhangi bir fikir?

Ziyaretçi defterini url: promosi-web.com/script/guestbook /

0 Cevap