Finalized php file... for now