PHP Integration

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

Moderators: Lapo, Bax

drcrazy4
Posts: 1
Joined: 18 Jun 2007, 14:44

PHP Integration

Postby drcrazy4 » 18 Jun 2007, 14:47

I am not sure if this is possible but can I integrate a Smart Fox Bits application with PHP. This would be basically just for logging in. Eg. Can I send a variable to PHP and back to Flash vice versa to check usernames and passwords. Help would be appreciated.
User avatar
Bax
Site Admin
Posts: 4612
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 20 Jun 2007, 06:59

The SmartFoxBits' LoginBox component do not support external username/password validation.
But you can still achieve this by using SmartFoxBits in conjunction with SmartFoxServer PRO: you can create a custom login procedure using a server-side extension. When your extension receives the login request from the LoginBox component, you can have a server-side LoadVars calling the PHP page to validate username & password.
This doc page explains how to implement custom login. You just have to add your own logic in the server-side code to contact the PHP page to validate data.
Hope this helps.
Paolo Bax
The SmartFoxServer Team

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 81 guests