[fpc-pascal] CGI (with Free Pascal) vs PHP
Michael Van Canneyt
michael.vancanneyt at wisa.be
Tue Mar 6 09:28:54 CET 2007
On Tue, 6 Mar 2007, Graeme Geldenhuys wrote:
> If you where planning on writing a new online inventory system with a
> Firebird DB as backend. Yes that is what I'm about to do... What
> would be the best choice of language?
> For one I don't know PHP, but was told it is really easy to learn. I
> know Object Pascal / Delphi very well.
PHP is easy to learn. But it's nothing like Object Pascal.
> What would be the advantages of one over the other. Currently when I
> write Free Pascal applications I use tiOPF (Object Persistent
> Framework) to handle all my object persistence. This also allows me
> to switch DB backends without any code changes. I guess using CGI
> with Free Pascal I can still take advantage of that.
> So 1 point to CGI and 0 to PHP. :-)
> Any more?
Seems you already made your choice :-)
You can also create an apache module with FPC. I would recommend that;
It'll be a lot faster than CGI.
If you want to reuse your existing code, I'd opt for that approach.
More information about the fpc-pascal