Page 1 of 1
SFS-PHP API
Posted: 01 Jan 2011, 14:27
by Geek
Hey everyone,
I was wondering if anyone knew exactly how to use php to talk to SFS.
What I really want to do is make something like an API, where I can do things in php such as check how many users are online on my server.
Any tutorials or help would be great!
Thanks.
Posted: 01 Jan 2011, 18:02
by BigFIsh
Sorry, it is not possible for php (via client side) to communicate to the server directly.
Perhaps you could write the number of online users into an external file (or a database) which can be accessible from outside.
Posted: 01 Jan 2011, 18:09
by Geek
Hey, thanks for the reply.
I see. That is a good idea. This would be best doing it server-sided extension for it I suppose?
I have seen thing such as an API that can check to see if a user is online - would this most likely be using a database/file with a list of users online in it?
Thanks for all your help.
Posted: 01 Jan 2011, 18:09
by Rutter
PHP can't talk directly to SFS but it can talk to the Flash client. I have a tutorial that shows how to do this and how to use mySQL as well. If you're interested pm me with your email address and I'll send you a copy.