PHP: making a file executable

The following little code snippet shows you how to change a files permissions to allow its owning user and group to read and execute it.