Therefore, the directrix equation is
y=-p/2
The distance from point P(m, 4) to its directrix is equal to 5,
∴4-(-p/2)=5
∴p=2
y=-p/2=- 1