I have an Android mobile chat app using websockets and server running on XAMPP in PHP. At present, it is simply running on my local machine during the initial development process.
I was thinking of rewriting using PubNub for a production level application, but a review of Google App Engine provided it could be a simpler alternative. Is it possible to migrate my XAMPP configuration with PHP server and MySQL database onto the Google cloud platform? What drawbacks are there in this transition?
For this I will suggest you to create your application locally using Google AppEngine SDK [1] with your configuration on XAMPP and see if it is working or not. The Google AppEngine SDK is the simulator for GAE Cloud, so if it is working fine with SDK then there is high probability it will work in the production environment.
[1] https://cloud.google.com/appengine/downloads
Related
I was able to setup WebSocket on Azure.WebSockets enabled on Azure
But my issue is : how to start the PHP ws server?
I have used this sample implementation https://github.com/ghedipunk/PHP-Websockets successfuy on my computer but I am not able to start the server in MS Azure.
All Azure Web Apps run in a secure environment called a sandbox. In the sandbox, each app is processed by Microsoft IIS. An app runs through PHP's Command Line Interface (CLI) is not allowed. For more details, please refer to Azure Web App sandbox.
In order to be able to run PHP-WebSockets in Azure, you need to host in something like a Virtual Machines, Cloud Services, or Containers, rather than Web Apps.
I am developing a tablet based android application and its back-end and api calls are done in php (slim lib) and mysql.
the app architecture is bellow.
there will be a local server machine in the building / room for handling api calls from android app through wifi network. all the data and media files uploaded /stored in the local machine. android app fetches the data/media files form server on demand via api calls.
Now am using xampp server for my test purpose and its work decently up to 10 devices . if the number of devices increases some devices lost the response from server or wait long time for response especially in file downloading from server to tab.
I have tested the app with real devices and commercial router. I need to improve the response speed from server and fast simultaneous file downloading.
Is there any commercial local apache server package available other than xampp and wampp.
Use EasyPHP. It is is one of the best contenders to Xampp.
Laragon
Easy Php
There are others, check out:
http://alternativeto.net
I am new in Azure. I want to develop a web application on Azure. i am a bit confused about one issue. Should i develop the application locally and then deploy it to Azure ? or should I develop the app directly on Azure ? Could anyone please guide me on this issue ?
As #David Makogon said, you can either develop applications on local then deploy it to Azure, or you can directly develop your applications on Azure. They are all workable on Azure, that depends on you.
Generally, you need to create services on Azure, i.e. Web Apps to host PHP applications and ClearDB (MySQL services on Azure) to store your MySQL data. To create the PHP + MySQL sites services on Azure, you can see steps on How to create server on azure and host php,mysql site on that on stack overflow.
If you have an application on local, you can deploy to Azure via GIT or FTP. You can refer to Create a PHP-MySQL web app in Azure App Service and deploy using Git and Create a PHP-MySQL web app in Azure App Service and deploy using FTP on official site for deploying your local application on Azure Web Apps.
Also you can leverage WebMatrix directly remoting to applications on Web Apps and develop your applications.
Is it possible to create an environment on local machine( i.e. localhost) where we can create and consume web service using PHP?
Is there any flow to create a web service like environment on localhost?
I would like to create an environment on localhost for web services where local machines, on intranet, get connected to main server (here again it's local machine) and can consume web services.
Like on internet we have Web Servers from where we can create and consume web services, Can we do the same on localhost?
Edit:
I am using WAMP with
PHP 5.3 Apache 2.* MySQL 5Windows 8
It is easy to create a local web service. You will need a local web server (like IIS or xampp) to execute PHP locally.
Access you PHP application in your browser using http://localhost/<yourApp>.php and provide any webservice at a local URL as well, e.g. http://localhost/<yourService>.php. Your application can then access the webservice using the local URL.
This works both for REST or SOAP-style services.
EDIT: Your edit shows that you already set up a local environment to develop and test webservices. You should really be more specific in your question, maybe you are looking for a tutorial to create web services with PHP in genereal. If so, Google will be your best friend: https://www.google.de/#q=create+web+service+using+php+tutorial
Does the Google App Engine local development environment include the Memcached service?
Must I connect the living Memcached service over the Internet even if I debug my PHP service in a local development environment?
The GAE development server simulates almost every feature of running your app live.
(With a few differences, including the fact that the local server won't enforce quotas or timeouts.)
This includes Memcached, or at least some sort of simulation of it. You don't need to connect to Google's actual Memcached server to test it locally. (There's no way to do that, regardless.)