Hosting the android mobile app in cloud server - php

I have developed an android app with the back end server in php using phpadmin.Now i want to export tables and the scripts to the server. I have following questions
Should i choose a cloud server like amazon ec2 or rack space or host ? I hosted a website previously , would it be the same way ?
I am using google api,GCM in my app, would they work without any issues ?
Please help in clarifying my questions

Im developing an app in html5 for android and ios and im going to host it in cloud, probably with amazon.
With cloud you will pay what you really use. With traditional hosting you pay a fixed amount a year/month regardless your app is being used or not.
Cloud is dynamic, so if suddenly your app becomes populuar your app will still work fine because the cloud provider will give more resources.
Ill try amazon because its free under a certain amount of resources demand.
For the second question i think there are no problems with these apis.

Android apps like
Connectbot
Overlook Whiz
Magic Color Picker skyvi
Ping & DNS is a DNS and WHOIS lookup tool that displays network diagnostics, pings servers, DNS lookup and reverse lookup, WHOIS queries, inspects HTTP response headers, traces routes, and checks whether a port is open. All of this is provided with no advertisements in sight!

Related

How to Make a Web Application Work Online, and Offline

I recently built a web application for my company, but the client needed the application to work both offline and online, depending on the availability of internet connection.
Anyways, I'm looking for a way to allow my application to run offline and online. The following technologies are used: PHP, MySQL, jQuery, HTML, and CSS.
Clients could be using that app without internet connection; if there is internet connection the app will automatically move to using the hosting server.
This is either trivial or insanely difficult, depending on a few things:
Does your client have an internal network it can use?
Can that internal network be accessed from the outside?
How many users will your application have?
Are they all on the same network?
On the trivial end of the scale, you can host the entire application locally on your client's network, that can also be accessed from outside, if there is an internet connection. But if there isn't as long as you're on the internal network, the service continues.
On the insanely difficult end, you can build your service so that each browser stores enough information on the machine to allow the user to continue to use the service even if internet connection drops. And then when the connection resumes, the service syncs any updates to the browser.
But this all depends on the answers to those questions.

How to make 2 website communicate with each other hosted on different cloud server

I have one website with one database hosted on Alibaba cloud chinese platform, I want to make a clone of the same website, host it on Alibaba cloud international platform with another database, now my question is how can I make those 2 websites communicate with each other so that I can keep datas in both the databases synced.
I am aware that having 2 domains but hosting on one server will solve my problem, but that is not to be done.
The answer to your question is you cannot in the manner that you have asked it.
The problem is that you cannot reliably communicate with a server inside China from outside China without setting up a VPN. This is expensive and requires government approval. If you try to get around this you will find extremely slow transfer speeds and / or blocking of your communications.
1) To connect a server inside China to a server outside of China, you will need to setup a VPN.
2) You will need to register the VPN used to transport traffic from China to outside China.
3) Currently, VPNs are only allowed to transfer traffic back to a company's corporate office.
In summary you will need to treat servers inside China as completely separate from servers in the rest of the world. Unless you have the budget, ICP license and government approval, synchronization between servers or databases will not happen.
I assume you are using the LAMP Stack, If so then you can access the MySQL instance create a new database with the same data but changing fields like WP_HOME & WP_SITEURL and access it via a VPC in other instance on AlibabaCloud adding custom security rules. You can bind this database in the new website.
I never tried it but you have to look into config.php/wp_config.php to set these parameters.
Let me know if you need more information.

Is it possible to use the facebook API on XAMPP (local server)?

Is it possible to use the facebook api like we do it on sites live on the internet , but on XAMPP ( a local server) installed on my computer ? I'd really appreciate your feedback.
Mostly the API's should work fine unless you have a registered domain associated with the API app key.
You have not specified which API you are using [Facebook has a lot of API's with various security levels]
A few disadvantages on working on local machines are as follows
A local machine is identified as an anonymous request coming from some IP as its not associated with a domain. Therefore chances of blocking your API request are high.
Your system may have imposed firewall rules for incoming and outgoing requests, if your local server is not configured to send and receive outbound requests your might be in trouble.
Hope this helps.
This is sent from a mobile, don't ask me how but the comment system doesn't work nicely for me.
A local server is the same as a live website, the only difference is that you run it locally...
If you have an internet connection while running the server, you're basicly the same as every other server....
but well if you don't have internet on it don't expect it to be working....
[but ofcourse you can only connect to it locally and not from other computers xD]
I hope I answered your question now, Feel free to add a comment if you want to.
Yours sincerely,
Mike M.
Yes you can. Just make sure that redirect url must be the url which we put in the facebook while building the app.

Tunnel from web host to external API

We have our IP white listed with an external company who allow us access to their API.
The problem is, you can only generate the queries to the API by accessing their control panel - which you need to be white listed to access.
We have hosting with GoDaddy, so obviously the IP that's white listed is one of theirs, so when we try and connect from our office or home, access is denied.
Is there any way to tunnel from the server, to the API?
Any help much appreciated
One solution is to set up a proxy server if you have a dedicated server, from what you said I don't think you have one. So, you need to create an intermediate API and host it on your server to be a broker between you and the destination API. If it's a REST API it's fairly easy to do with PHP cUrl library.

Web app - Biometric system connection

I will be developing an application for a club where they will have visitors use biometric systems(finger print) or magnetic cards to mark their attendance.
This application is planned as a web app, made using PHP/MySQL/Javascript. It does a lot of other things as well.
What I wanted to find out is how is the interface between Biometric/Megnetic Card systems to a web app done?
I've never worked on this and am hoping if someone who has experience with this can throw some light on this as to how this could be accomplished. Any pointers will be appreciated.
Also, we will be hosting this application remotely. So we won't have physical access to the web-server.
(I'm afraid there's got to be some form of application installed on a pc that would interface with the hardware and probably makes calls to the web app. But, if there was a way to connect it to the web app directly, then the app would be easy to deploy to any location with minimal installation.)
Thanks! :)
How is the hardware connected? Directly to the app server, or to a standalone box of some sort? If it's a standalone box, then yes you'll have to have some kind of program on the box collect the data and send it to the web app. If it's connected directly to the app server, then you need to write something that either polls the hardware or receives messages/events from the driver and DTRT wrt the web app.
There three type of communication channels are supported by the biometric machines. They are serial, TCP/IP and HTTP. In your case, you either need to implement TCP/IP or HTTP.
If your application is running the intranet, then you can implement the TCP/IP server application and host at a intranet system which is expected to write in a common database between the biometric application and your web-app.
If your application is hosted at the server, then you can implement the http server and associated the URL with the machine. For this you need buy the http api supported machines. Here is the google search link for finding such machines.

Categories