Can I use server running on PHP to communicate with my Android application? [closed] - php

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'm planning to make a website in PHP. At some point in future I might need to create an Android application for my website. Now I know that Android is Java based, so my question is will I be able to communicate with my application i.e. sending and receiving data from my server on which my PHP website is running and how?

The best way is to generate JSON objects using your php scripts then using JSON parser in your android app to use those objects.
Using this you easily send and receive data without having to change php scripts. You can also follow this link :
http://www.androidhive.info/2012/05/how-to-connect-android-with-php-mysql/

Related

Access client's SQL Database with PHP [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I was thinking is there a method to gain access to a client PC's SQL database? I am creating a web portal for our LAN clients and I will need to manipulate data on the client's database.
No. you cannot do this with PHP. Php runs on the server.
You cannot do this with javascript in the browser as it is not allowed access to the client pc.
You may be able to write a chrome or firefox plugin that will have access to the host pc and then write code to interact with it.
Or just write an application for your clients to install that comunicates with your app on the php server.

What to use to make a cloud-powered app [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I've made an android app that let you save some data locally (for example: photos). Now i would like to create a web service that will automatically backup the data and later let the user to check them on a web application (eventually coded with PHP).
I know PHP for server side, and some python. Should i create a Rest-full api with php using a cms like described here or should i use Google Cloud Platform? Which is more convenient?
The application should:
Authenticate the user,
Automatically backup the data,
Let the user
access the data on a web application
Personally I find Parse to be really useful, powerful and affordable. In the scope of developing apps for local businesses we still haven't paid a dime and it has saved us a ton of development time. www.parse.com

Can I build Mobile App using PhoneGap for a Application build using PHP and MySQL [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Can I build a Hybrid Mobile App using PhoneGab or Telerik for an application built using PHP and MySQL running on AWS or any Hosting platform.
For PhoneGap you can only use HTML / CSS / JavaScript.
However if you have an app you built using PHP / MySQL you can connect to it within your PhoneGap application via ajax.
So the answer to your question is yes, you can build a mobile app for your application built using PHP and MySQL.

Android chat with PHP? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I would like to implement a kind of chat. The client is Android and the server PHP.
Now I have some questions:
Is this kind of chat possible or what should be on server side? Is it recommandable to do a PHP request (maybe every second) to retrieve new data? What is the best way to realise it? What are pros and contras for php? What are good alternatives?
Don't poll your server. Chat is realtime communication. Php is not built for this kind. Push the messages to android app. You can use php to run workers, process messages, deal with db things etc. you can look into Xmpp and message queues. Gcm might be helpful. It also supports upstream messaging.

Consuming php web services with WPF client [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have created a php RESTful service which respond with data in JSON format and i can easily access it with my android app, but the problem is with my WPF desktop client. Actually, i don't know a better way to call a php web service from a WPF client. Please suggest some good solutions to deal with this problem.
Your issue doesn't have anything to do with WPF, but simply .NET in general. You're looking for Windows Communication Foundation.
The learning curve is a little steep, but once you've got it set up right, consuming your service in .NET should be pretty simple.

Categories