<?php
include('WebIcqLite.class.php');
define('UIN', 111111111);
define('PASSWORD', 'password');
$icq = new WebIcqLite();
if($icq->connect(UIN, PASSWORD)){
if(!$icq->send_message('123456789', 'Hello from php!!!')){
echo $icq->error;
}else{
echo 'Message sent';
}
$icq->disconnect();
}else{
echo $icq->error;
}
?>