Date: 08/31/01
- Next message: Schlurchi_de <email protected>: "[PHP-DEV] Bug #13080: MySQL-Commands"
- Previous message: php-jp <email protected>: "[PHP-DEV] Bug #13079 Updated: register_globals = off & session.save_handler = user"
- Next in thread: Christian Joergensen: "Re: [PHP-DEV] Weird error with sessions"
- Reply: Christian Joergensen: "Re: [PHP-DEV] Weird error with sessions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello,
Script:
------------------
<?php session_start(); ?>
------------------
This command:
php -q sessiontest.php shows this:
[root <email protected> scripts]# php -q bug00001.php
<br>
<b>Warning</b>: Cannot send session cookie - headers already sent in
<b>/dat/dev/srm/test/scripts/bug00001.php</b> on line <b>2</b><br>
/dat/dev/srm/test/scripts/bug00001.php(2) : Warning - Cannot send session
cookie - headers already sent
<br>
<b>Warning</b>: Cannot send session cache limiter - headers already sent
(output started at /dat/dev/srm/test/scripts/bug00001.php:2) in
<b>/dat/dev/srm/test/scripts/bug00001.php</b> on line <b>2</b><br>
/dat/dev/srm/test/scripts/bug00001.php(2) : Warning - Cannot send session
cache limiter - headers already sent (output started at
/dat/dev/srm/test/scripts/bug00001.php:2)
<br>
<b>Fatal error</b>: Failed to initialize session module in
<b>/dat/dev/srm/test/scripts/bug00001.php</b> on line <b>2</b><br>
/dat/dev/srm/test/scripts/bug00001.php(2) : Fatal error - Failed to
initialize session module
[root <email protected> scripts]#
php sessiontest.php shows this:
X-Powered-By: PHP/4.0.8-dev
Set-Cookie: PHPSESSID=72acab12384f04e6211a8f3408b5747e; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pragma: no-cache
Content-type: text/html
<br>
<b>Fatal error</b>: Failed to initialize session module in
<b>/dat/dev/srm/test/scripts/bug00001.php</b> on line <b>2</b><br>
/dat/dev/srm/test/scripts/bug00001.php(2) : Fatal error - Failed to
initialize session module
This last error is normal, as the session module is off-line at this
moment, but why is -q showing the Headers already sent error, and without
parameters it works ok? No clue yet, but I'll go digging.
regards,
Derick Rethans
---------------------------------------------------------------------
PHP: Scripting the Web - www.php.net - derick <email protected>
SRM: Site Resource Manager - www.vl-srm.net
---------------------------------------------------------------------
JDI Media Solutions - www.jdimedia.nl - d.rethans <email protected>
Boulevard Heuvelink 102 - 6828 KT Arnhem - The Netherlands
---------------------------------------------------------------------
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Schlurchi_de <email protected>: "[PHP-DEV] Bug #13080: MySQL-Commands"
- Previous message: php-jp <email protected>: "[PHP-DEV] Bug #13079 Updated: register_globals = off & session.save_handler = user"
- Next in thread: Christian Joergensen: "Re: [PHP-DEV] Weird error with sessions"
- Reply: Christian Joergensen: "Re: [PHP-DEV] Weird error with sessions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

