mYstline Posted December 15, 2008 Share Posted December 15, 2008 Hi, first time poster, long time lurker here. I've come across a few problems, a client of mine wishes to have two identical web servers running, one backup, in case the main server goes down (So he can just ring up and request the domain switched over, so there's barely any downtime) That's all fine, except he wants to be able to use a single form to upload files to both servers, and insert data into both SQL databases to save him time. Is this possible? The same client also wishes to have a sort of calender running, where clients can request meetings, would anyone be able to point me in the direction of a decent script that performs something like this? Thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/137127-several-questions/ Share on other sites More sharing options...
premiso Posted December 16, 2008 Share Posted December 16, 2008 More of a server question as appose to PHP. I am sure it is possible, most likely use a cron job to copy files from server a to server b every x minutes. As far as the database connection to both sites, that would tie up a bunch of space, probably be better to do a script that does a mysql dump every 6 hours or something like that then upload it to the other site and insert that data via command line. But yea, it is alot of work and could possibly take a tole on your server having them clone each other. For the database you could possibly create a file that connects to that servers DB and each time a query is ran that inserts/updates on your site write it to a log and the script runs that log via cron every x minutes to push the updates to the other server. Quote Link to comment https://forums.phpfreaks.com/topic/137127-several-questions/#findComment-716282 Share on other sites More sharing options...
mYstline Posted December 16, 2008 Author Share Posted December 16, 2008 Thanks, I'll take a look into it, but I'm not sure the servers could handle cloning each other every 6 or so hours... It could get a little bandwidth heavy. Any idea about the calender script? I've had a look at planet source codes, but can't find anything to work off. Quote Link to comment https://forums.phpfreaks.com/topic/137127-several-questions/#findComment-716292 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.