convert all pages to php