If the rim of the frying pan is too thick (most modern ones are) to crack the shell immediately into two, then hold the egg in one hand and tap the centre - around the fattest part - with the blade of a sharp knife (not serrated).
Rather than straight into the pan, some people crack the egg into a cup and then slowly pour the mix into the frying pan.