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
Related
I have a web app running with PHP and MySQL.
I need to develop a desktop application which will sync data from the cloud DB whenever the client's computer connects to internet. If the client's computer is not connected to the internet, the desktop application will continue to work offline, using the local DB. The local DB is obviously a replica of the cloud DB.
I don't want to use Microsoft c# to create the desktop application. The desktop application needs to be cross platform and should run on Windows, Mac and Linux.
I have used XAMPP to create a local MySQL DB and have achieved the local app to sync with the cloud app. However, there are multiple problems to that approach.
-- Whenever my client's need to install the local app, they need to call me and I have to install XAMPP in their computer, setup the server, setup the local database and prepare it to sync with the cloud database with their account. They obviously aren't tech savvy so they don't know how to do it themselves.
-- If the client formats his computer, they will call me again and again and I have to set it up for them all the time, which isn't scalable in the longer haul.
-- XAMPP doesn't work when there are other processes running and using common ports. Example - Skype, Quickheal and other antivirus software running will prevent the SQL server to start. Sometimes what happens is that even after I have installed the local app, the client will install an antivirus software or some other tool and my local app will stop working on their computer.
Hence, I need to do away with XAMPP and switch to something else.
SQLite is out of question since it is serverless. I don't want to use .NET either. What I am looking for is this
I want to develop the database driven local application and package it somehow. I want to provider an installer file which will automatically install the database server, setup the database and everything else. The client will only login to the system in the local app and he doesn't have to setup any server. All the work that he does will be synced with the cloud server whenever internet connection resumes.
Please note that there is a master slave work involved. The client will have multiple terminal computers using the master system from other terminals and all these terminal computers will use the local database installed in the master computer.
I have tried to illustrate this with a diagram below
What's the best way to go about it?
We have multiple dev machines and a Git server on the same network, and a Web server (on a different network that we talk to via SFTP).
All dev machines sync code using Git. Occasionally, we want to do a one-way push from any of dev machines to the Web Server via SFTP.
I've been exploring the built-in RSE and Team Synchronizing feature within Eclipse to move changes from Dev machines to the Web Server, but it seems to be a two-way syncing mechanism. Often it tries to overwrite the local files by pulling (doing a GET) from the Web Server, and refuses to show the PUT option.
Is there any other way to do a deliberate file push?
Have a web app installed on a local internal hardware. I am trying to figure out how best (even if possible) to replicate the data to an external server with the same app installed so they can sync the data between them. So if external they can access via web if internal they can access locally.
PHP / CodeIgniter App running on MySQL.
Had idea of having the local app remotely connect and use the external server DB as the main source but then thought what if internet isn't available how best could I handle that?
So your webservice runs on a machine in your local network. And if you're not on the local network you want to connect via Internet?
Can you detect when you're on the local network? Maybe this is as simple as trying http://mywebservice/, otherwise switch to Internet mode http://mywebservice.mydomain.com.
You could also consider dropping local availability. Does it happen a lot that you are on the local network but don't have Internet access?
I currently work on an open source e-commerce platform (www.oscmax.com) and I am trying to work out if I can deploy an offline version that can run on an iPad.
I can not seem to find an iPad AMP (Apache MySQL PHP) application and was wondering if anyone could answer:
a) Does anyone know of an AMP version that will run on an iPad
b) Is there another way to achieve this without recoding the entire application in XCode.
The idea is to have a local version of the online store that sales reps can use when selling to wholesale customers that will store the orders locally until they find a WiFi or 3G signal.
If I could get Apache, MySQL and PHP to run locally (like it does using WAMP, MAMP, LAMP, etc.) it would be great.
Any ideas?
You can't run server specific software on an iPad, think of it as a big phone, it just won't do it. The overhead required for mysql / php / apache to run is not something you want on a client side anyway. You need to re-do your app. Simple as that.
The iOS developer terms prohibit the use of interpreted code in native apps which would rule out running PHP through an iOS app. Your best bet would be to look into HTML5 technologies such as offline storage and build a web app.
iOS prohibits apps from spawning processes, and the standard AMP tools spawn lots of processes. So no.
There's an app that appears to serve this need (code and run a php server on an ipad): http://www.becomekodiak.com/kodiak-php.html
I want a develop a web application with php, and I want a run my apps with a android device. But my device will not be connected to internet, so I must create a local server on the device to run my php code. Is it possible? And if it's possible how?
Based on this page, developing Web Server for mobile devices is still on the research phase. Most probably you would need to use some kind of simulator for Android and develop your App on powerful desktop PC.
EDIT: Looks like such a server exists for Android.
Please use KSWEB.apk. This app supports PHP, SQL, html, csc, but it requires 3 android devices. The first serves as router, the 2nd device is a local server and the 3rd devices is a monitor.
I'm not sure about your need to have a web server running on your phone, but if you have a wireless router and your phone can connect to it, can you not install an Apache server with PHP support on your development PC and access it via your phone's wireless connection?