Convert pages to PHP