Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added here_now example and fixed presence test.

  • Loading branch information...
commit 0c48f11d9f981857c7746fe101d1fd267aaefded 1 parent de4f3e9
@stephenlb stephenlb authored
Showing with 15 additions and 1 deletion.
  1. +13 −0 php/3.3/here_now_example.php
  2. +2 −1  php/3.3/presenceTest.php
View
13 php/3.3/here_now_example.php
@@ -0,0 +1,13 @@
+<?php
+require_once('Pubnub.php');
+
+$pubnub = new Pubnub( 'demo', 'demo', false , false, false );
+$here = $pubnub->here_now(array( 'channel' => 'my_channel' ));
+$occupancy = $here['occupancy'];
+$user_ids = $here['uuids'];
+
+print("UUIDs (userIDs): ");
+print_r($user_ids);
+print("\n");
+print("OCCUPANTS: $occupancy\n\n");
+?>
View
3  php/3.3/presenceTest.php
@@ -10,4 +10,5 @@
fclose($fp);
exit;
}
-));
+));
+?>
Please sign in to comment.
Something went wrong with that request. Please try again.