Consolidate initial PHP code.