I have made scripts that log onto AIM before. You will need to use sockets to connect to AIM. I suggest making a java applet if you plan on using it through your browser. If PHP is the way you want to go, it can connect and sign on AIM, though it will most likely need to connect, then sign in, and then sign out every time the script is ran.