Recent Blog Posts
When it comes to deleting a directory tree most solutions that have been posted around are recursive functions, like the following: ... While this is easy to implement it has some disadvantages when it comes to large trees ...
There are several pitfalls when using POSIX signal handling with php. The following example should help to get around them. The example forks a child process and afterwards sends the `SIGTERM` signal to the child. I'll guide you through the important sections:
Recently I was required to dump the source code of a closure in php, for debugging purposes. Here comes my first working approach: