Quote:
Originally Posted by kh99
Ha - The cron idea sounds good to me, to be honest I don't know anything about updating the phrase in the database.
|
I think that is what I will do...
- Run a cronfile that does the network check with curl
- Update $vbphrase[image_server] using MySQL and the phrase table.
Thanks for helping me brainstorm the approach.
One advantage of this approach is that I can easily change $vbphrase[] when working on a server (and can also easily disable cron when I need to). Also, when I add a third server to the mix, I can easily update the cron file and can avoid doing anything in vB.
--------------- Added [DATE]1260092915[/DATE] at [TIME]1260092915[/TIME] ---------------
Unfortunately, my idea did not work.
Followup post:
UPDATE phrase SET text='www.mybackup.com' WHERE varname='backup_server';