code to create e-book of titles read - in PHP