Custom Login Help

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

Moderators: Lapo, Bax

Post Reply
KryptKnight
Posts: 14
Joined: 08 Apr 2005, 13:57

Custom Login Help

Post by KryptKnight »

I was wondering if anyone knows how to create users for the custom login example.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Custom Login Help

Post by Lapo »

KryptKnight wrote:I was wondering if anyone knows how to create users for the custom login example.
What do you mean exactly? Is there something not clear in the "custom login" tutorial?
Lapo
--
gotoAndPlay()
...addicted to flash games
KryptKnight
Posts: 14
Joined: 08 Apr 2005, 13:57

Post by KryptKnight »

I wanted to know if there was a way to add usernames and passwords in Flash instead of editing the sfsLogin.php file. Like having a registration page.
curtis
Posts: 5
Joined: 09 Apr 2005, 12:29

Post by curtis »

it would be easier really to use a MySQL database krypt knight
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

KryptKnight
Yeah, curtis is right.

The purpose of the "customLogin" article is to show how to integrate SmartFoxServer Basic into an existing server side system. In this particular example we used PHP and for the sake of simplicity we didn't use any database, just a simple array containing user data.

In a real world application you would obviously need a database or at least an XML file. MySQL is surely one of the best databases around for PHP.

If you need to learn how to integrate PHP with MySQL you can find tons of tutorials on the web. Check these articles, for example:

http://www.devpapers.com/article/36
http://webmonkey.wired.com/webmonkey/pr ... rial4.html
http://perl.about.com/od/phpandmysql/

Hope it helps :)
Lapo
--
gotoAndPlay()
...addicted to flash games
KryptKnight
Posts: 14
Joined: 08 Apr 2005, 13:57

Post by KryptKnight »

Thanks Lapo, it really helps alot! :D
Post Reply