Parfum Shop's Blog

You come when you need, away when you get

Cron 2 database on separate server, to get same content (Syncrhonize content multiple site)

By • Dec 17th, 2008 • Category: Programming, Web Programming

If you need to make 2 or more site with same content, but have different design and server and domain, you can use this script. If you want to run automatically every hour, day, week or month, you can use PHPJobSceduler To Run This Script. Or you can just put this script on your source page (Not RemoteSite). For Example you put this code after footer index page, so if some one visit your site, they willdo the synchronize job to another server.

<?php include(‘syncron.php’); ?>

Then make syncron.php, put code bellow in to it.

<?php
#*****************************************************************#
#*

Tagged as: ,

is
Email this author | All posts by

2 Responses »

  1. mm. love it.

  2. While you have added a good deal of work into itWow what a post!

Leave a Reply