Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Running scripts on the server side
Old 08-12-2010, 03:12 PM Running scripts on the server side
Novice Talker

Posts: 11
Trades: 0
I was wandering how to run scripts on the server-side. I have a countdown script that counts down the number of days until the so called Armagedeon on 12/21/2012 When the count reaches that day a message pops up. I don't want my visitors to easily change the date and time on their local machine to see what the message says

It is a javascript

Thank You
GnosticThinker is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-12-2010, 03:22 PM Re: Running scripts on the server side
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
javascript runs clientside NOT serverside and serverside scripts run ONCE when they are requested.

So your countdown HAS to run clientside. Secondly scripts running on the server would show the server time NOT the users LOCAL time.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-14-2010, 11:56 AM Re: Running scripts on the server side
Sleeping Troll's Avatar
Ultra Talker

Posts: 351
Name: Butch Begy
Trades: 0
Don't use the client time, use the server time for the script... Need help with php? Contact me.
__________________
Sleeping Troll, EMUSE, Mind Expansion...Truly serendipity!
Sleeping Troll is offline
Reply With Quote
View Public Profile
 
Old 08-14-2010, 12:36 PM Re: Running scripts on the server side
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
So what time zone is "Armageddon" scheduled for?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-14-2010, 12:40 PM Re: Running scripts on the server side
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
BTW

http://www.webmaster-talk.com/javasc...tml#post968060
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-14-2010, 01:01 PM Re: Running scripts on the server side
Novice Talker

Posts: 11
Trades: 0
I guess it it supposed to happen at 11:12 UTC whatever that means
GnosticThinker is offline
Reply With Quote
View Public Profile
 
Old 08-14-2010, 01:23 PM Re: Running scripts on the server side
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
UTC means Universal Time Co-ordinates.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Running scripts on the server side
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.54949 seconds with 12 queries