php init script improve