Pierre: Problem mit session_start()

Beitrag lesen

Hallo liebe PHP'ler

kann mir jemand sagen, woher die folgenden PHP-Error herführen? Bin ziemlicher Newbie und weiss nicht, was hier nicht stimmt.

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/httpd/vhosts/little-thomas.com/httpdocs/gallery/var.inc.php:105) in /home/httpd/vhosts/little-thomas.com/httpdocs/gallery/adm_gallery.php on line 8

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/httpd/vhosts/little-thomas.com/httpdocs/gallery/var.inc.php:105) in /home/httpd/vhosts/little-thomas.com/httpdocs/gallery/adm_gallery.php on line 8

Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/little-thomas.com/httpdocs/gallery/var.inc.php:105) in /home/httpd/vhosts/little-thomas.com/httpdocs/gallery/adm_gallery.php on line 10

Die Zeile 1-12 in "adm_gallery.php sehen wie folgt aus:
<?

// *** LOADING CONFIG FILE
include "var.inc.php";

// *** LOGIN FIRST
   session_start();
   if (empty($login)){
      header("Location:login.php");
      exit;
   }

Hab das Script bei "hotscripts.com" gefunden, den Entwickler erreich ich aber nicht. Die E-Mails kommen alle wieder zurück. Nun hoffe ich, dass mir hier jemand weiterhelfen kann.

Besten Dank
Pierre