add error handler for php, first output on php tab