migrate pages php file