Using PHP to keep authenticated user logged into IRC

PHP can be used for persistent connections, but it should be done in a command line script, not in a script executed by a web server.