Skip to content
/ phet Public

A Extensible PHP Comet Server for delivering real-time Web 2.0 Applications

License

Notifications You must be signed in to change notification settings

tim-smart/phet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

h1 . Welcome to the phet PHP Comet Server This server utilises the socket functionality of PHP to create a scalable PHP Comet server.

h2 . Usage Have a look at example.php to see the most basic usage. You can extend phet by registering modules with a server instance. Achieve this buy creating a class with the method run. You can then use the servers registerModule method to register the module with the server. E.g.

require_once 'phet/phet.inc.php';

class MyModule {
	public function run( $data, &$client, &$server ) {
		// Use the passed variables to perform you actions
	}
}

$phet->registerModule('MyModule');

$phet->start();

Some examples of modules can be found in phet/modules/

About

A Extensible PHP Comet Server for delivering real-time Web 2.0 Applications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published