Can you connect with PHP

Post here all your questions related with beta SmartFoxServer API, such as Shockwave, Ajax ...

Moderators: Lapo, Bax

User avatar
Flappi282
Posts: 158
Joined: 20 May 2009, 17:51
Contact:

Can you connect with PHP

Postby Flappi282 » 22 Jun 2009, 17:40

Hi, i am making a register script in PHP, and was wondering if you could connect to SmartFox server, to register the details to the DATABASE. I could set it up to connect to the database through PHP but the database only allows local connections, considering i am hosting it on BlueHost, and i don't use MySQL with SmartFox
smooch1502
Posts: 87
Joined: 07 Aug 2009, 11:01

Postby smooch1502 » 09 Aug 2009, 06:34

i would like to know this to
User avatar
Lapo
Site Admin
Posts: 21588
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 09 Aug 2009, 22:19

Hi, i am making a register script in PHP, and was wondering if you could connect to SmartFox server, to register the details to the DATABASE.

This would complicate things alot. PHP has a nice native API to talk to MySQL and other databases. It's much better to share the same database across both PHP and SmartFoxServer.

Talking via PHP to SFS is possible only by creating a specific API that speaks the SFS protocol.
Lapo
--
gotoAndPlay()
...addicted to flash games
sstark
Posts: 77
Joined: 21 Nov 2008, 16:06

Postby sstark » 10 Aug 2009, 15:17

communicate to PHP via AMFPHP and Flash, and lease SFS communication to Flash.

so...

SFS <---> FLASH <---> AMFPHP
User avatar
Flappi282
Posts: 158
Joined: 20 May 2009, 17:51
Contact:

Postby Flappi282 » 14 Aug 2009, 15:12

What i mean is, the software on my machine doesn't accept any connections which aren't local
User avatar
Lapo
Site Admin
Posts: 21588
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 16 Aug 2009, 08:35

You mean SmartFox?
If you run version 1.6.5 or higher make sure to that <ServerIP> in your config.xml is set to:

Code: Select all

<ServerIP>*</ServerIP>

This will bind all available IP addresses available on your machine.
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “Other Client API”

Who is online

Users browsing this forum: No registered users and 1 guest