Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of victor  >  Dota pvpgn chat  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example using
Class: Dota pvpgn chat
Send and receive messages from a chat server
Author: By
Last change:
Date: 2012-12-09 22:37
Size: 388 bytes
 

Contents

Class file image Download
<?php
require_once('class.dota.php');
$dota = new dota;
$dota->key();

/*
Login 
 $dota->login('ip_server','username','password,'6112');
 
Display Chat
 $dota->read();
 
Send a Message
 $dota->send('your message');
 
 note: this ID will login and join channnel `chat` on BNET
 */
$dota->login('pvpgn.forumdota.com','VbA','mypassword','6112');
$dota->send('testing');
?>