Hard to give advice. I wouldn't want you heading off in a direction just because I would have
If you cant guaranty you can compile FreePascal on your target server without problems, then, I'd say thats an issue.
Again, I'd use PAS2PHP because Im better at coding OOP stuff in Lazarus than PHP, and it converts it all for me. Im happy to write a quick startup package for you. ie: Connect to a database, and output a table. If thats something you would like to try.
Other than that, there is PHP or C#. I prefer C# over PHP due to being type safe, but, then PHP is just so well supported by servers.
O, and perl, but that just looks like gibberish to me.