PHPでSessionを使えなかった時、ありがちなこと。

session_start()がありません!というエラーが出ると思ったら、PHPが動いているサーバ(Linux)で、Sessionモジュールが入っていなかっただけでした。とほほ。PHPを入れただけでは自動でsessionモジュールまで入れないディストリがあるみたいですね。aptなり

# apt-get install php5.1-session

なんなりしてあげてください。

関連する記事:

Powered by

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">