Updated php to current standards