Tips and tricks for PHP
Here are some tips and tricks about PHP. Some useful thins to save your life (or your time, at least) and some pitfalls to look out. I will continuously update this post every time I encounter one to add.
Auto center a form in Delphi
Just call this function to center the form on the screen (for example in the OnShow event).
Execute a file with Delphi
This example is well known because it is in Delphi 7's demo "Filmanex", but here it is too.
Ajax loading with XMLHttpRequest
Two functions to get a file from the XMLHttpRequest method: synchronously (blocking) and asynchronously (non-blocking). These functions are subject to some crossdomain security limitations though.
Get Elements By Name with Internet Explorer
The getElementsByName from Internet Explorer is not working very well (the Mozilla behavior is far better). Here is a function that provides a fix for that (and still works in Mozilla).
Include Javascript file dynamically
How to include a JavaScript file (even generated by some php, for example) with crossdomain working, at runtime.