Last active
December 3, 2015 08:33
-
-
Save khoand0000/1e9441c60b482c7478d4 to your computer and use it in GitHub Desktop.
How to use pusher
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Author: videde | |
* Date: 9/13/13 | |
* Time: 2:26 AM | |
*/ | |
require('Pusher.php'); | |
$app_id = ''; | |
$app_key = ''; | |
$app_secret = ''; | |
$pusher = new Pusher($app_key, $app_secret, $app_id); | |
$pusher->trigger('my-channel', 'my-event', array('message' => 'hello world from php') ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment