You don't need frames to view this website. Flash communication server. Flash mx xml socket server.
Home
Main Menu
Home
- - - - - - -
What is Palabre ?
Features
News
FAQ
Forum
DEMO
- - - - - - -
Downloads !
Browse SVN
- - - - - - -
Search
Contact Us
- - - - - - -
Sourceforge Project Page
Python
Links
Palabre on Facebook






Actionscript for Multiplayer games
 
Download Palabre Flash Xml Socket Server DOWNLOAD Download Palabre Flash Xml Socket Server FORUM Download Palabre Flash Xml Socket Server FAQ Download Palabre Flash Xml Socket Server WHAT IS IT
 



Using Palabre ? Coming here for Support ? Please consider making an (even small) donation :)
Palabre Forum  


::post new topic::
mysql documentation - 2006/08/25 03:37 Hello
OK, i got everything working. I connect, i send messages... all works great...
But I want to connect to a mysql database, i put the code in the server config file, i reboot and now i am trying to call data from the flash client.
What are the commands?
I tried:
<msg dBRequest="Show databases"></msg>
but that gets back an error. What am I missing?
Any help is greatly appreciated.
Thanks
chris
  reply | quote
Re:mysql documentation - 2006/08/25 13:38 Hi,

In fact the point of dbRequest is ONLY to check if a user has an account in your database and if he's got the good password (so if he is allowed to connect to this server).

Palabre is not really meant for server integration and code remoting (Unix philosophy, One program -> One action, Palabre is meant for Multiuser, not database information retrieval).
And doing SQL requests via <msg node />is also a HUGE security hole for your database. Someone sending :
Code:

 <msg dBRequest="Show databases"></msg>


could also be sending
Code:

 <msg dBRequest="Drop databases"></msg>


Or
Code:

 <msg dBRequest="Select user_password FROM users"></msg>




If you only need to store and retrieve user informations, Torleif made a mod for that purpose (informations stored in text files) view : http://palabre.gavroche.net/component/option,com_simpleboard/Itemid,35/func,view/id,125/catid,1/

If you need to get variables from a database I believe it's a better idea to use simple PHP (or ASP, CFM, JSP, ..) scripts that returns the needed information through a simple LoadVariables('flash.php?action=getDatabasesList'), and

<?php

/* Connect ... */
mysql_connect(... blablabla);

if($_GET['action'] == 'getDatabasesList']) {

$res = mysql_query('SHOW databases');
while($row = mysql_fetch_array($res)) {
print('<database name="'.$row['name'].'" />');
}
}
/** ... */
?>


Have fun !

Célio
  reply | quote
::post new topic::
SORRY, website is currently mostly broken due to software changes on the server.
Hope to fix it soon ...

In the meantime you may still download palabre or use the forum