add support for exec'ing php in examples