Fix missing semi-colon.
Preparing to work with other PHP servers.

1. Use $_SERVER as fallback for $_ENV, for compatibility with SetEnv.
2. Only output to STDOUT when running from PHP’s built-in web server.