Windows: right click it, and go open as.. then select the PHP CGI or what ever it is....
Linux: Open up a terminal window, navigate to the dir where the php irc bot is, then type php filename.php