myGully.com

myGully.com (https://mygully.com/index.php)
-   Entwicklung & Programmierung (https://mygully.com/forumdisplay.php?f=72)
-   -   session_start() problem! (https://mygully.com/showthread.php?t=2295840)

mik_y 30.04.11 20:07

session_start() problem!
 
Hi leute ich habe ein problem mit einem code :S

der macht mir wirklich sorgen vorallem weil der dick und fett auf meiner hp steht xD

hier der code:

PHP-Code:

<?php
            session_start
();
            
// enter the absolute path to ask&answer directory here
            
$dir "/srv/www/httpd/phost/d/de/host/xxx/web/askme/";

            
// ask and answer functions
            
include_once("{$dir}functions.php");
            
?>

und hier der fehler:
Zitat:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /srv/www/httpd/phost/d/de/host/xxx/web/askme.php:2) in /srv/www/httpd/phost/d/de/host/xxx/web/askme.php on line 3
wäre cool wenn ihr mir helfen könntet^^

7331 30.04.11 21:53

Hast du einen BOM am Anfang deiner Datei? Wenn ja, raus damit. Mit einem Hexeditor oder Notepad++ geht das.

meandor 30.04.11 22:15

kann es sein, dass du den session_start das 2. mal dort ausführst?
check ma, ob das auch der einzige session_start ist (auch in den included dateien)

mik_y 01.05.11 11:57

also ich use notepad++ und nen BOM wäre mir aufgefallen ich guck mal nach den icludes
...
jop da war ein zweites^^
Vielen dank fehler ist behoben :)

meandor 01.05.11 22:22

kein problem, ab heute darfst du mich gott nennen
xD


Alle Zeitangaben in WEZ +1. Es ist jetzt 12:33 Uhr.

Powered by vBulletin® (Deutsch)
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.