SFS-PHP API

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Post Reply
Geek
Posts: 12
Joined: 25 Oct 2010, 19:28
Location: United States

SFS-PHP API

Post 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.
Hey, I'm Geek. Programmer.
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Post 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.
Smartfox's forum is my daily newspaper.
Geek
Posts: 12
Joined: 25 Oct 2010, 19:28
Location: United States

Post 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.
Hey, I'm Geek. Programmer.
Rutter
Posts: 99
Joined: 12 Dec 2007, 16:21
Location: Canada
Contact:

Post 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.
Post Reply