|
Define Mirror..
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Well.. we have a website, vital to our business. If it goes down for any reason we want to be able to point our clients to another url (on another server) which has a mirror of our website on it. The site is written in asp.net with a mysql database.
Obviously I can set this up manually and take regular backups and copy them over, but there must be some way of automating all this...
cheers
Fred
|
|
|
|
|
Create a script that simply copies the data over to the other servers FTP directory (actually it is safer for the redundancy server to call what it needs).
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
And if you're using SQL Server this has built in replication functions for the data.....if you've got any data, you didn't say
|
|
|
|
|
Replicating databases is always very messy. I have normally went for a system where important updates (like personal details) are automatically added straight away to redundancy servers.
Brad
Australian
- Captain See Sharp on "Religion"
any half intelligent person can come to the conclusion that pink unicorns do not exist.
|
|
|
|
|
Thanks Brad - yes I'm actually not too concerned about the database (mySQl as it happens) as, as you say, this can be updated in real time anyway. But the CMS of the site also allows admin users to upload images and other files (pdf and doc) for public view and download, and somehow I want to get these over to the mirror server too... further trouble is I will prob only have ftp access to the mirror (as opposed to full control/access over the "main" server.
cheers
Fred
|
|
|
|
|
Hi all,
I am creating an application in Visual Studion 2005 (Asp.Net )and the language used is C#.Net.It's a Web Based Application .I put a TreeView Control in one my page.But in TreeView Control ,I need to add one more column means ,Its looks like
+ First 2
- Second 3
+ Third
+ Fourth
+ Fifth
+ Seventh 4
The heirarchical list shows the name of some topics inside a book and the right sided number shows the page number.The page number will be a link.How can I create a TreeStructure like this.Or please tell me an alternate solution for this..
Thanks In advance,
Jeeva
|
|
|
|
|
Can anyone tell me how to clear the Cache.For example: if I type the username and next time i use the other name. These name are stored as Cache in the textbox; it shows the previous datas that i have typed. Can u tell me How to clear those Cache.
Regards,
LEE
|
|
|
|
|
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
Read More ~
So, You Don't Want To Cache, Huh?
If you wanna do manually then just delete "history, cookies, form info". Internet Options -> Delete "Broswing History"
Hope it helps.
|
|
|
|
|
HTML Goodies.... the Ultimate resource.
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Hi there,
I want to get difference between two times in php. As for example, 13:31:00 - 05:25:00 = 08:06:00.
Can you suggest me the way to solve this problem??
Thank You in advance.
Waiting for your reply.
|
|
|
|
|
YES, see Chris, we need a PHP forum!!!
The best way to do that is to create a single number, subtract them and then create the new number. Once you have this use substr to re-create the format,
<?php
$time1 = '13:31:00';
$time2 = '05:25:00';
$time1 = str_replace(':', '', $time1);
$time2 = str_replace(':', '', $time2);
$difference = $time1 - $time2;
$orangised_difference['hours'] = substr(0,1, $diffrence);
$orangised_difference['minutes'] = substr(2,3, $diffrence);
$orangised_difference['seconds'] = substr(4,5, $diffrence);
$final_difference = $orangised_difference['hours'] . ':' . $orangised_difference['minutes'] . ':' . $orangised_difference['seconds'];
?>
(note, this is very rough cut example.)
?>
Brad
Australian
- Captain See Sharp on "Religion"
any half intelligent person can come to the conclusion that pink unicorns do not exist.
|
|
|
|
|
Hi Bradml ,
Thank you for your reply , I tried to apply your code but I got some problem in it.
If my time1 = 06:08:21 and time2 = 05:56:28then I got difference = 5193
Now according to the code I got following output:
orangised_difference['hours'] = 5
orangised_difference['minutes'] = 93
orangised_difference['seconds'] =
final_difference = 5:93:
It's not the perfact. Its giving proper output of your given inputs after changing substr syntax.
substr($difference, 0, 1);
substr($difference, 2, 3);
substr($difference, 4, 5);
Can you please suggest me that if I give my inputs then how I can get the proper result???
|
|
|
|
|
What is it that you are using the this function for?
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
I am using this for finding employee's working time.
For example, Mr Xyz checkIn at 05:00:00 AM and checkOut at 06:23:00 AM then I should able to count proper working time of him.
|
|
|
|
|
ok then maybe best way to do it is to reduce time into seconds and calculate like that?
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
What I gave you is just an example. it may be that the employee come at night and check out at next day noon then converting time into second and after calculate it in the hours will be ok???
|
|
|
|
|
well check to see if the time extends into the next day, then if it does calculate from sign in to midnight and from midnight to sign out.
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
see I am telling you all things,
I have to create such application like:
-> When the user checkIn first time in a day, I have to take the date in date field and time in time field.
-> When he checkOut then I have to take the time and calculate working hours.
-> The same user can not do checkIn more then once in a single day.
Hope you got the clear idea of this small application.
|
|
|
|
|
As stated before, work out the time for that particular day. Once you have that add it together and divide by 60 to get minutes.
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Hi Dear .
how to create an animation.
regards
adil
|
|
|
|
|
Try using Flash.
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
Just sticky tape a whole lot of photos to the wheel of a car and drive around the block.
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Get a yellow sticky pad, draw a stick man in one corner. On each sheet below gradually change his position so he's doing something (like running). Now flick the pad through the pages and it will look like he's really running!
|
|
|
|
|
Hi Guru's,
Is there a way for me to determine if the clients I'm about to send mails are using HTML format or text format?
Please advice.
Dom;)
|
|
|
|