The following is my output in the command prompt window(DOS Prompt?) C:\PHP>hello.php Content-type: text/html X-Powered-By: PHP/4.3.2
!#C:\php\; echo"Hello World!"; if ($foo): echo "yep\n"; elseif ($bar): echo "almost\n"; else: echo "nope\n"; endif; phpinfo(); C:\PHP> And the following is the PHP code to generate it. !#C:\php\; echo"Hello World!"; if ($foo): echo "yep\n"; elseif ($bar): echo "almost\n"; else: echo "nope\n"; endif; phpinfo(); Now, I know that the variables are not set, so they should be false, but the output just displays a "listing" of the code and doesn't process it. In the documentation, it states that PHP can be run from the command prompt, like a batch file. Now what am I doing wrong. I do have it working correctly with an Apache server, that I am using backend. and my install dir is "C:\php", and it is listed first in the path. John A. Thomason [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php