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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to