The purpose of this example is to demonstrate, how
the Sirel PHP library
facilitates the use of PHP in a role of an entry point
to a non-interactive text/file processing console application.
The motivation for using PHP as an entry point is to
allow the console application to be used on a
commonly affordable web-hosting service that supports
PHP and does not allow its clients to run their own
web servers.
The benefit of using PHP as an entry point
in stead of writing the console application as a CGI program
is that the PHP interpreter handles all of the
CGI/web-server-interface related parts and allows the
development of the console application to be focused on
application specific text/file processing.