In JavaScript its possible to use window.alert("some text") to display a message on the screen, is this possible with PHP?
No, you would need some sort of clientside scripting, so you should use Javascript.