Hi,
I designed one intranet website. Now we are updating employee b'day information for that i should design page and uploaded every time.
Is there any option exact 12'clock the page automatically has to go live.

Thanks in Advance.
Cheers......

Dani AI

Generated

— the cleanest, most reliable way to make a page “go live at 12 o’clock” is to run a server-side scheduled task, not client-side JavaScript. is right that something must check the time, but a browser-based check requires the browser to be open. For an intranet site you typically have two practical routes: a scheduled job on the server, or change the site so the page is generated dynamically from data (so you never need a manual upload).

If you can get help from your sysadmin or hosting control panel, ask them to create a scheduled task. Example cron (Linux) that runs a PHP publish script at midnight:

0 0 * * * /usr/bin/php /home/username/scripts/publish_birthdays.php >> /home/username/logs/publish.log 2>&1

On Windows you can use Task Scheduler to run a batch file that copies the updated file into the webroot:

xcopy /Y "\\server\updates\bday.html" "C:\inetpub\wwwroot\index.html"

When a script writes a static HTML file, write to a temporary file then rename it to avoid partial content being served:

file_put_contents('/path/page.tmp', $html);
rename('/path/page.tmp', '/path/page.html');

If you do not want to learn programming, ask an admin to set the job for you or use a hosting control panel cron UI. If you can edit the site, a better long-term fix is to store birthdays in a CSV or database and have the page render from that data (or rebuild nightly) so manual uploads stop.

Test everything: pick a near-future time to run the job, check logs, verify server timezone (midnight server vs local), and confirm file permissions and webserver ownership. For platform docs see cron basics and Windows Task Scheduler:

Recommended Answers

All 4 Replies

Write a function which checks every few minutes for 12'oclock. If current time is desired time then update ur Site.

i don't know any program languages, plz can u explain in brief........

WOW!! good to now that buddy.
THen start reading some books and then come back to this forum.

hum. now i don't have that much time to learn those and all.
ok. i will ask anyone help in this.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.