|
Hello everyone!, Im making a connection between a Unity webplayer and a PHP/MySQL database. Where should i place my database info such as the password and username(the ones that you need to log-in into a database)? Should i put it directly into my PHP script? what if someone found out the URL, is it possible for them to sneak into the PHP codes?. or I should put the info in the Webplayer Build as a public variable(enter the value through Inspector)?
(comments are locked)
|
|
If you put it in the php code, it doesn't leave the server. Use the Putting the database connection info in the webplayer or stand-alone would be a very bad idea. This would mean that you have to transfer that information from the clients machine to the webserver. Anyone using your build and anyone able to intercept the connection would be able to sniff out your database login. yes, but isn't everyone can view the source page of URLs? like an html file on browsers.
Dec 21 '10 at 08:15 AM
Albert
no, not with php, its an html generator, so it will connect to the database & then process its data to HTML, so the actual php code (where the pass is) will never be show to the net (as far as i know)
Jan 06 '11 at 03:23 PM
Badger
(comments are locked)
|
