PHP is a server side technology. Once the parse has finished executing the script and the web server has sent the result to the client PHP's job is done.
Pop-up windows are client side events. Thus, PHP cannot help you. It could generate the JavaScript code that makes a window pop-up, but PHP itself can't.