You need to run the sharejs server (which runs in nodejs, not php).
You need to either route /session/* URLs to ShareJS (recommended) or
run sharejs on a different hostname/port (not recommended).
Your application code (javascript in the browser) should be identical.
-J
> --
> You received this message because you are subscribed to the Google Groups
> "ShareJS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
sharejs+u...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.