adding date and time to a webpage?

How can I do this without using javascript? just basic html?
TeknikDevAsked:
Who is Participating?
 
Jason C. LevineConnect With a Mentor No oneCommented:
Anytime your ISP advertises PHP, MySQL with hosting, they are running Apache.  So you can use SSI.

Instructions to test (and the date command) are here:

http://www.webmasterworld.com/forum13/546.htm

Basically, put the following code in your page to test:

<!--#ECHO var="DATE_LOCAL" -->

If that doesn't return the date, you will need to add some commands in an .htaccess file per the link above.
0
 
Abiel de GrootDeveloperCommented:
What server language are you using? asp?

A.
0
 
Jason C. LevineNo oneCommented:
You don't need a server-side script for this if you are on Apache.  A simple SSI will work too.
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

 
TeknikDevAuthor Commented:
Html ...no server
0
 
Jason C. LevineNo oneCommented:
TeknikDev,

At minimum, you need a server.  Plain old HTML previewed locally has no method to get a date or time.  Javascript is the only option at this point.

If you are running Apache, you can enable server-side includes and use that in plain HTML (no PHP or ASP needed).
0
 
TeknikDevAuthor Commented:
What's apache? How would i know what server im using? i am hosting the site at ixwebhosting.com.
0
 
Abiel de GrootDeveloperCommented:
The server is likely to be either Linux or Windows.

Try and find out which one it is.

A.
0
 
Jason C. LevineNo oneCommented:
ixwebhosting.com is a shared *nix environment.  I'm familiar with them...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.