Php > Miscellaneous
PHPTocLib
PHPTocLib ----Example file testscript.php. Also included in library download ------ signon(); //Loop forever echo("Starting forever loop"); while(1) { //Read the incoming from AIM $in=$b->read_from_aim(); //echo($in); $command=msg_type($in); $info=msg_parse($command); if($command['type'] == AIM_TYPE_MSG) { //Send their message back to them in reverse $message=strip_tags($info['message']); if(strlen($info['message'])>0) $b->send_im($info['from'],strrev($message)); $info['message']=''; $info['from']=''; $message=''; } else if($command['type'] == AIM_TYPE_WARN) { if($info['from']) $b->warn_user($info['from']); $b->setWarning($info['warnlevel']); } } ?> ----End example code ---------- This code allows you to set up very basic functionality. It signs a user on, and returns all messages it receives in reverse. It also warns a user back when warned.
Php Codes
Algorithms
Arrays
Authentication
Calendar
Code Snippets
Programs
Content Manage
Contest Related
Cookies
Credit Cards
DBase Related
Databases
Date Time
Directories
E-Mail
Errors
File
File System
Forms
Handling
Graphics
HTML and PHP
Informix
Ingres
InterBase
LDAP
Look and Feel
Miscellaneous
MySQL
Other
PHP Classes
Searching
Navigation
Statistics
Strings
User Manage