Jump to content

Recommended Posts

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 :)

Link to comment
https://forums.phpfreaks.com/topic/137127-several-questions/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/137127-several-questions/#findComment-716282
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/137127-several-questions/#findComment-716292
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.