+ 1
Can I create an app for Android in php? And how?
Okay then. I know webpages like facebook are based on php and mysql, and yet the have a nice app working so well. Now that I've learnt a bit more of php, I would like to create an app for an online game I play since long time ago (I don't know if I can say the name or it will be considered advertising, but it's footiegame -it's in spanish-). So that online game is full written in php, I mean, all the pages are "something.php". Is it possible to create an app for that game using php or I need to write it in another language? If it's possible, which programm/tool/whatever do you recommend me to start working with? If anyone has more advices they will be welcome. Thank you! PS: Sorry for bad English
6 Answers
+ 1
i think "phonegap" is what you looking for
https://phonegap.com/
0
Thanks for that link! I'll try it!
But I still have the same question. Can I write an app using php?
0
Ok, so answering myself. I cannot create PHP apps, but I can create a java-sql app. I'm too noob at this, I didn't even know that it is possible to connect java or other languages with sql.
0
i use phonegap too
all u need is html javascript and css
when you need to connect to your server
just use javascript to post to your php
0
var http = new XMLHttpRequest();
var url = "get_data.php";
var params = "lorem=ipsum&name=binny";
http.open("POST", url, true);
//Send the proper header information along with the request
http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
http.onreadystatechange = function() {//Call a function when the state changes.
if(http.readyState == 4 && http.status == 200) {
alert(http.responseText);
}
}
http.send(params);
https://stackoverflow.com/questions/9713058/send-post-data-using-xmlhttprequest
0