|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-04-05 11:56 UTC] jamie at caplex dot com
I need to set the session id when processing a .php file from the command line. The purpose is to produce a .pdf by firstly running the php script and piping the output to an html file. I then run htmldoc on the html file to produce the pdf. When running php on the command line without the -q switch the headers are included in the pdf file. When the script is processed using the -q switch I get the warning: <i>Cannot send session cache limiter - headers already sent in <filename></i> It appears that I can remove the warning be either not including session_id($argv[1]) or running the script without the -q switch. Neither is an option for me. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 20:00:01 2025 UTC |
starting with ini_set("session.use_cookies", false); before using any other session functions should help?