How do you auto-update your website?

Asked By 130 points N/A Posted on -
qa-featured

I want to make my website which to auto-update at a particular time every day. What do I have to do to make this happen? How does the web auto-update? How do you turn off the auto-update feature of a webpage? What are some disadvantages of having auto update facility on my website? The webpage is written in PHP and HTML.

SHARE
Answered By 10 points N/A #184843

How do you auto-update your website?

qa-featured

Hello,

How are you? If your web host permits Cron use and simple shell scripts, it should not be hard at all. Just schedule a Cron job that runs a script that creates the index page. If you find WordPress simplest depends on what exactly you mean by “Simplicity”. It would definitely be simpler to set up, although it would also have vastly more in the way of moving parts. You could then upload 013113.html to the server at any time you like before the day itself and the Cron job will take care of the rest. A script something like this might work : #!/bin/sh FILENAME= date+%y%m%d.html WEBROOT= “/your/www/root” rm ${WEBROOT}/index.html [-f${WEBROOT}/${FILENAME}];then ln-s $ {WEBROOT}/${FILENAME} Set it to run 5 minutes after midnight every day and your page will be updated each day. In addition to this you have all your old pages archived automatically. That is exactly it.

Moreen Jamnelly.

Related Questions