Hi Ian,

You should definitively read up on how server-side code (SSI, PHP, etc) and
client-side code (JavaScript) are to be used and how they can interact.

The SSI code is executed on the server, before the reply is sent to the
client -- the JavaScript code is executed on the client and is never
executed on the server.

SSI can be used to inject server-side information into a web page.
JavaScript can be used to perform calculations on the client, like
modifying the loaded page or send requests back to the server.

What are you trying to achieve?  Do you want to transmit the local client
time to the server (for some purpose) or do you just want to display the
client time in the page?

Cheers,
/uli


On Tue, Jan 14, 2014 at 6:50 PM, Natko <[email protected]> wrote:

>
> Hi,
> are there any reasons not to use NTP or SNTP for time synchronization?
>
> Natko
>
>
> On Friday, January 10, 2014 3:41:04 PM UTC+1, yana wrote:
>>
>> Hello,
>>
>> I am just new to mongoose and amazed with this very light server. I have
>> setup the mongoose on the embedded arm hardware connected to the network
>> and it works fine. :-) I can access the server from the client computer
>> through web browser.
>>
>> Now I would like to send the current client local time to the server
>> using SSI. I played around  <!--#exec "date --set '2014-01-10
>> 11:13:13"--> and works ok but the date is hardcoded. I have read the
>> mongoose manual and say only the following SSI are supported.
>>
>>
>>    - <!--#exec "shell command"--> Execute shell command.
>>
>>      o        <!--#include "path"--> File path must be relative to the 
>> current doc-
>>       ument.
>>
>>      o        <!--#include virtual="path"--> File path must be relative to 
>> the doc-
>>       ument root.
>>
>>      o        <!--#include file="path"--> File path must be the absolute 
>> path.
>>
>>
>> Is there anyway way that we could get the client current time using SSI
>> tag? and pass it to exec tag such way the server will sync with the client
>> time?
>>
>> Best Regards,
>> Ian
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "mongoose-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/mongoose-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"mongoose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mongoose-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to