give up php, use nodejs instead.