data automatically synchronizing the remote database php mysql - php

I am developing an inventory management web application using PHP and MySQL. This application will run both locally and remotely. If not connected to the internet, data will be stored in the local database however, when the internet is available, the application will automatically synchronize to the remote database. Does PHP/MySQL support these sort of local and remote capabilities?

This sort of application is doable using PHP and MySQL. A good solution would be to use cURL connections using API Keys or tokens with jSON service requests and receipts. This kind of application would be fairly extensive to create. The local machine would obviously need to be running a webservice and have PHP and MySQL installed.
Here is the cURL manual:
http://php.net/manual/en/book.curl.php
Here is some info on jSON:
http://php.net/manual/en/book.json.php

Related

PHP Web App - local and online synced versions

I developed a PHP driven Web App with a MySQL backend. New requirement is to have it available offline too at a client's office, once there is an lnternet connection, the two should sync so that both local and online versions are the same. Any advice on how best to implement this?
I found MySQL database Master-Master Replication helpful.
https://www.linode.com/docs/databases/mysql/configure-master-master-mysql-database-replication
no need to write code

PHP project: Telnet connection to Nokia Equipements(MSS) with PHP and data interaction with database throught telnet

As part of my graduation project, I have to make a web application that connects to a Nokia proprietary equipment.
This is the architecture of my project.
Is it possible to do this project with to language PHP: Can I connect to the equipment with php throught telnet
and for the hand "1" Can the database through php interact with the equipment with telnet
Just to know I had never developed any thing in php, even with developing web applications.
Thank you in advance
There is a PHP telnet library available you can use that.Refer the link below http://www.geckotribe.com/php-telnet/
The short answer is no, You cannot have a Web application in PHP connection to telnet. The reason being the server that runs in front (Apache/nginx) calls the PHP script every time there is a request and has a default timeout period. So the telnet connection would be blocking for your webpage.
Now from what i understand is that you are trying to build a PHP application and you want some telnet connection to render/store in database. The correct way from my point of view to do this would be to make two applications, One is your PHP website and the other can be a wrapper around telnet server. The telnet application would run as a service unlike Php app because u need to maintain the connection. As far as the fetching the telnet data into php app/ dbs there could be many method. I am listing some of them for you.
Process pipes in php to interact with telnet app
Make a wrapper web service around telnet and use curl in php to fetch info
[Recommended if you want it in dbs] Directly add content from the telnet app into the database.
The above answer is if you only want to use PHP to make the app. If thats not the case have a look at GNU microhttpd server, That can be used to do what you are trying with much more control

Connecting external mySql to Google App Engine

I have hosted a database at www.freemysqlhosting.net/. Also, I have a Google APP Engine project , through which I would like to connect to the said database. I read that external requests are not possible in GAE, and one has to use urlFetch. But, without any other server to process some kind of web api, is it possible to do this ?
www.freemysqlhosting.net/, as far as i know, only hosts the website.
If the database can be accessed using an ip address/port combination then all you need to do is enable billing on your application so you can access the sockets apis - and you should be good to go.
Sockets API reference

Best way to access SQLite database on AWS EC2 server from iOS app?

I have a web server set up on an EC2 instance where I have a SQLite database stored. For testing purposes, I currently have a PHP file that I can hit by sending an NSURLRequest to http://<my-instance-ip>/foo.php, where the script will access the SQLite database and return the information in JSON. Would I want to do the same thing in a live application or am I thinking of this completely the wrong way? I'm new to AWS so I'm not too sure about how these services are used.
If the database is for all your app users, you should use mysql or other full functional database, and use php to write web services.
If the database is for a single user, you can just store the sqlite data in the device, and use fmdb to access it

How to use a mysql database in firefox os?

I have an instant messaging application on the web with its database and almost finished M2S. I want to make an application for firefox you without having to go through my website and I can do it if I have to call the mysql database?
Since Firefox OS is comprised of HTML5 technologies, it is currently not possible to connect directly to a MySQL server using the tools available at this time.
See here:
Related Post

Categories