login about faq

Due to the large amount of spam accounts, we temporarily disabled new user sign ups. To override this, email newuser.lgqa@gmail.com and an admin will determine if you are permitted to join


Hi Guys

I Just wanted to know is there any way that i can set a php webpage to to show set message on a webpage?. We would set the times to display via the server time. So what i mean is if i set a the server time to show a message at 10:00 am the webpage will update itself a show a set message at 10:00am

Can this be done?, if you don't understand what i am trying to ask please let me know, Thanks Guys

Look forward to you writing back to help me with my question

asked Aug 12 '10 at 17:14

smileUKwebsite's gravatar image

smileUKwebsite
226242535


You can test if it's a certain hour like this:

if ( date('G') == 10 )

That will test if the current hour is the 10th hour of the day (remember to offset it by the visitor's timezone).

answered Aug 12 '10 at 17:39

eddieringle's gravatar image

eddieringle
2.3k71644

Thanks very much eddieringle

can we set it also at set time to show message then hyper link that message with a sound file?

answered Aug 12 '10 at 18:03

smileUKwebsite's gravatar image

smileUKwebsite
226242535

edited Aug 12 '10 at 18:03

Yeah:

if ( date('G') == 10 ) {
    echo 'Check out this <a href="music.wav">sound file</a>.';
}
(Aug 12 '10 at 20:58) eddieringle eddieringle's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported


Join Us in the Chat Room

Tags:

×254
×211
×96
×84
×9

Asked: Aug 12 '10 at 17:14

Seen: 502 times

Last updated: Aug 12 '10 at 20:58