php


online offline and offline synchronization in php


I want to create a button in my page in php which can sync and update the databases from localhost to server and server to localhost. Localhosts are having their own user ID and Password. I mean, If the internet is not working they can update their database offline and when there is internet they can update their database in server and at the same time the updated database from server should be updated in localhost also.
You should try using localStorage when the browser goes offline:
http://diveintohtml5.info/storage.html
http://www.w3schools.com/html/html5_webstorage.asp
Then later on you should use AJAX after your browser establishes the Internet connection again, so you can send the localStorage contents to your server:
http://api.jquery.com/jQuery.ajax/
Sending localStorage variables through the jQuery Ajax function without it being in the url
http://www.w3schools.com/ajax/default.ASP

Related Links

PHP error while trying to put login in HTML [duplicate]
Get value from array PHP [duplicate]
Put every row into table cells
Multi page gravity form login step
MySQL: Find a character in a string with similar characters in it
PHP ODBC to MS SQL Server with cursor not recognizing column aliases
PHP HTML to PDF Solution for table page breaks
how to make a relation between the user selection from dropdown list and the select query
CodeIgniter 3 + Docker - Sessions
Google Authenticator in php
CodeIgniter pagination with index function
When you upload news on your website, how to make added news go top not down?
Set pagination with codeigniter
Rating system implementation in Laravel
Call to undefined method Imagick::roundCorners() on MacOSX
Is there a PHP native method that delete row of a multidimensional array?

Categories

HOME
matrix
automapper
adfs3.0
workflow
hid
hdfs
tibco
drag-and-drop
bittorrent
sharepoint-online
cname
sslhandshakeexception
mpu6050
smartgwt
squirrel-sql
dhcp
texas-instruments
sonicwall
heap-dump
pywinauto
coroutine
http-authentication
codefluent
opam
angular2-highcharts
akka-persistence
web-analytics
data-collection
spreadsheetgear
oracleforms
php-5.3
pyspark-sql
amazon-cloudtrail
laravel-4.2
es6-modules
lxml
custom-keyboard
landscape
redgate
macports
reset
game-center
slideshow
system-on-chip
google-prediction
sendinput
dredd
sonarqube5.2
lightning-workbench
karabiner
gestures
test-data
prefetch
dmarc
nvda
piping
utf-16
psd
univocity
phpquery
nette
chicagoboss
mgwt
sablecc
signed
dos2unix
otl
jini
prism.js
frontbase
boinc
spiral
donut-chart
session-0-isolation
onconfigurationchanged
getproperty
getopt-long
jzmq
uipangesturerecognizer
prototypal-inheritance
downgrade
activestate
browser-based

Resources

Encrypt Message