Introduced TPHPWebSiteModule

Charta Web now supports the TPHPWebSiteModule module which allows an entire PHP site to be executed within Charta Web.

One can now use Charta Web to execute a PHP web site by using an instance of TPHPWebSiteModule. By default Charta Web will check its configuration file to determine which PHP modules should be loaded. Because Charta Web now supports PHP modules one probably does not need to install Apache or IIS just to allow PHP to be executed.

Currently it is possible to provide a source file, for instance index.php, and a path (usually where the source file is located). The PHP module will execute the source file on every request. The path is used to serve any resources like images and Javascript files.

In the future it should be possible to implement a PHP extension as well. This would mean that the PHP code would be able to call custom functions implemented in Charta Web. By both embedding PHP and extending PHP it would be possible to facilitate the migration of PHP code to Delphi code: the different layers of the PHP code can be moved to Delphi one at a time.