We report on phase measurements and adaptive phase distortion compensation of femtosecond pulses using multiphoton intrapulse interference phase scan (MIIPS) based on second harmonic generation in the plasma generated on the surface of silicon and metals.