Embark on a journey of knowledge! Take the quiz and earn valuable credits.
Take A QuizChallenge yourself and boost your learning! Start the quiz now to earn credits.
Take A QuizUnlock your potential! Begin the quiz, answer questions, and accumulate credits along the way.
Take A QuizKindly log in to use this feature. We’ll take you to the login page automatically.
LoginGeneral Tech Technology & Software 3 years ago
User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.
Make the user interface using HTML and then get the data asynchronous (eg: AJAX) using JavaScript from the server.
This has the advantage that both the desktop and the mobile client can eventually be the same, while the server can completely ignore the user-interface mechanics and focus on the services you are providing.
If you want to make the mobile client "Native" (eg: android app), then you merely make it "talk" with the server using HTML asynchronous requests.
Edit: On the server side you can do something like this:
// extract uri from request
$request = explode("?", $_SERVER["REQUEST_URI"]);
$uri = explode("/", $request[0]);
// sanitize user input
foreach($_POST as $k => &$v) $v = addslashes($v);
// prepare file input
foreach($_FILES as $k => $v)
{
if (empty($k) or empty($v)) unset($_FILES[$k]);
}
This give you the request details, then client-side you do requests like:
site.com?php_service/param1/param2/...
No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.
Kindly log in to use this feature. We’ll take you to the login page automatically.
LoginReady to take your education and career to the next level? Register today and join our growing community of learners and professionals.
Your experience on this site will be improved by allowing cookies. Read Cookie Policy
Your experience on this site will be improved by allowing cookies. Read Cookie Policy
manpreet
Best Answer
3 years ago
I have set up a LAMP server on aws. I am planning to create a web service with both a web client and an android client. I am not exactly sure where to start. I would like to create a RESTful service but have no experience with it and don't know where to start. I have hit restful services for the android app that I have created but have not designed one myself. I have worked with Java and RoR. I would like to learn Python as well if required. Any suggestions would be great.
question in short: What technology to use for a web service with both a mobile client and a web based client?