session_start() || shell access problem......
| From: | CF High | Date: | Sat, 20 Sep 2003 19:46:05 +0000 |
| Subject: | session_start() || shell access problem...... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-163297@lists.php.net to get a copy of this message | ||
Hey all.
I'm running a script from the command-line php interpreter as follows:
(thanks to D. Souza for lead)
$text =
usr/local/bin/php /path/to/my/php/page.php;
within the read file I want to enable sessions, so I session_start() at the
top of the page:
<?
session_start();
?>
<?
code to execute here.......
?>
Regardless of how I mess around with placement of session_start(), I get a
"Headers already sent".
Why? Nothing has been output to the browser within the read file!
Furthermore, if I create a test page with just:
<?$text = usr/local/bin/php /path/to/my/php/page.php;?>
Still receive "Headers already sent".
My eyes are completely fried -- anyone feel like saving my vision?
--Noah