converted pages to php