Pascal and PHP
If you're a Delphi user, Serge Perevoznyk's PHP4Delphi (http://code.google.com/p/php4delphi// is everything you'll need for integrating your Pascal and PHP code. PHP4Delphi is even used in CodeGear's Delphi for PHP IDE.
If you're a Lazarus user, a subset of the PHP API for creating PHP extensions (libraries) with Pascal is available as part of the PHP Toolkit. A forum with additional links is here:
http://groups.google.com/group/phptk
With the PHP Toolkit you can also convert your Delphi and Lazarus form design files (.dfm/.lfm) to VCL for PHP files, as well as configure Lazarus for use as a PHP IDE.
From the Free Pascal wiki, page "Pascal and PHP", as it stood on 2014-03-09 after a change by Jwdietrich, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.