Forum Moderators: open

Message Too Old, No Replies

Change web server time with asp

         

Smauroz

11:51 am on Dec 5, 2001 (gmt 0)



How can i change the defaul web server time when someone enter in my site (the GMT)???
It's possible without a function recall in all asp page???
Tnx for All
Smauroz :)

sugarkane

6:27 pm on Dec 5, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Smauroz, welcome to wmw :)

I'm not sure what you're asking - do you want to display the current time on a web page whenever someone visits it?

Smauroz

11:56 am on Dec 6, 2001 (gmt 0)



Tnx for the welcome :)
do!!!
Tnx byez

sugarkane

10:18 pm on Dec 6, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can use SSI (Server Side Includes) to do this - Brett posted a nice explanation of how to do it here [webmasterworld.com]

Hope that helps,

Xoc

9:47 am on Dec 8, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<%=Now%> will give the date and time at the server. If you want it formatted, there are some other options.

I think I read in the docs that the SSI thing works in .htm pages on IIS, but not .asp pages. I haven't checked, though, so don't quote me.

ralnikov

9:59 am on Dec 8, 2001 (gmt 0)

10+ Year Member



SSI is done by special filter, so you can do SSI where you want - htm, html, shtml, cfm - you just have to setup web server.