messiasj
19-03-2003, 20:54
ich habe ein problem mit den sessions:
immer wenn ich zum bsp. den befehl session_start() ausgeführt werden soll, kommt folgende fehlermeldung
php.exe hat einen fehler verursacht und wird geschlossen.
das problem tritt aber nur auf meinem lokalen server auf, beim provider funktio natürlich alles.
was ist an meiner konfiguration meines servers falsch?
habe apache auf nem windows 2000 system
php 4
Matthias
mrhappiness
19-03-2003, 20:54
session_start geht mit php 4 nich!
messiasj
19-03-2003, 20:55
wie muss ich dann vorgehen?
messiasj
19-03-2003, 21:00
außerdem: das habsch aus der php faq:
session_start
(PHP 4 >= 4.0.0)
session_start -- Initialisiert eine Session
mrhappiness
19-03-2003, 21:03
war auch nich wirklich ernstgemeint... ;)
aber es wär bestimmt hilfreich mehr zu erzählen was deine konfiguration angeht:
php als modul oder cgi?
debug-log von apache?
...
das ist auch nicht wirklich ein php-problem sondern eher eines der installation....
*MOVE*
messiasj
19-03-2003, 21:11
php als cgi
in der error.log ist es wohl dieser eintrag:
[Wed Mar 19 19:15:52 2003] [error] [client 127.0.0.1] Premature end of script headers: f:/programme/php/php.exe
mrhappiness
19-03-2003, 21:18
#!/usr/local/bin/php steht in deinem skript? (muss glaub ich da hin, kennmich it cgi nich aus)99% of the time, this is caused by improper permission settings. Make sure you have the proper permissions set on your script (CHMOD 755).
You should also make sure that you are using a text-only editor such as Notepad or UltraEdit to edit your scripts (on a PC) or SimpleText or BBEdit (on a Mac).
Also be sure to also upload your scripts in ASCII and not binary. Failure to do so will result in your files not executing properly.hth