Devkbase The Developer's Knowledge Base

Tips and tricks for PHP

Posted on October 25, 2011

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.

Filed under: PHP Continue reading

Auto center a form in Delphi

Posted on February 13, 2010

Just call this function to center the form on the screen (for example in the OnShow event).

Execute a file with Delphi

Posted on February 13, 2010

This example is well known because it is in Delphi 7's demo "Filmanex", but here it is too.

Ajax loading with XMLHttpRequest

Posted on February 12, 2010

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.

Tagged as: Continue reading

Get Elements By Name with Internet Explorer

Posted on February 12, 2010

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

Posted on February 11, 2010

How to include a JavaScript file (even generated by some php, for example) with crossdomain working, at runtime.