I'm trying to run a php script through ssh doing that:
/usr/bin/php "/path/to/the/script.php"
But it gives errors that won't happen running the script from a web browser. For example if I have:
<?
include("functions.php");
SetCookie("mycookie",1);
?>
It will say it can't set cookie because the headers are already sent by functions.php at line 100 which is the last line. Also it displays the script content before showing the errors (don't know if it's normal).
So why I don't get the same thing with command line and apache ? Thanks