Originally Posted by
robertforyou
Ok, will try this, but first i need to document about php, because i used it only one time to create a page, i'm not to good at this.
I looked, it's not too hard PHP, but another problem. Wouldn't the database infos will be seen when someone will check "View page source"? Also i will need to learn how to do http requests for this xD It was easier getting the infos directly from the database, but now if i will do it with a php to prevent database info stolen, i need to do it with http requests. Do you know any good book/tutorial or something to learn http requests?
Edit: I documented a bit on the internet, and the php code is hidden to users, so i can safe connect to the database. Now, my question is. If i have a /stats.php that connects to the database, how would i connect it to the java application, and how would i do a request from java to that php file to get something from the MySQL database?
Edit2: Got it to work by making two jars, one client and one server, they send infos to each other using sockets. And the database infos are stored only on the server.
Bookmarks