But when I execute the code from the >commandline: >--
>
php test.php > test.html >---
Well, duh!
[b]the first line just tells posix based systems (like *nix) that it should use the PHP interpretter to process this script if it has been started from the console, and have the execute/search attribute set, by just entering:
$ ./test.php > test.html
to run it on W32 systems or by executing the php command you'll have to enter: