Application handler through request/response for PHP