Vhost time settings

This is a discussion on Vhost time settings within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, it's possible to set different time settings on an apache virtual host than the rest of the system ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-26-2007
Gin
 
Posts: n/a
Default Vhost time settings

Hi, it's possible to set different time settings on an apache virtual host
than the rest of the system time
or other vhost time, so that a php script can see different time settings ?


  #2 (permalink)  
Old 06-26-2007
shimmyshack
 
Posts: n/a
Default Re: Vhost time settings

On Jun 26, 3:10 pm, "Gin" <nomaginNOS...@yahoo.com> wrote:
> Hi, it's possible to set different time settings on an apache virtual host
> than the rest of the system time
> or other vhost time, so that a php script can see different time settings ?


that kind of thing is best left to setlocale in the app layer, with
apache not AFAIK

  #3 (permalink)  
Old 06-27-2007
Gin
 
Posts: n/a
Default Re: Vhost time settings

> that kind of thing is best left to setlocale in the app layer

Can you explain a bit more about this ?


  #4 (permalink)  
Old 06-27-2007
shimmyshack
 
Posts: n/a
Default Re: Vhost time settings

On Jun 27, 2:24 pm, "Gin" <nomaginNOS...@yahoo.com> wrote:
> > that kind of thing is best left to setlocale in the app layer

>
> Can you explain a bit more about this ?


well the idea is simply to allow your users to control the locale that
gets used in your scripts, so that when they log on they see a time
appropriate to them because the script has detected their location
(remember their settings) and made a call to setlocale with their
language code.
If you could set the system time within a vhost section it would lead
to all kinds of weirdnesses, where one vhost was able to "cheat a php
script" which replied on system time to work - a trial script for
instance. And what would be the use of offsetting a system time for
one vhost, after all system time is what it is. What you are talking
about is "how can get php to see stuff" the answer is set it in the
config section that sets up the environment for each user when they
first log on.
Further exmples woulf include internationalisation, paths, font sizes,
data they saved, user tracking etc.. all require app level settings
and are thus easy to save to a database, easy to manipulate and set
per user, or per "site/vhost".
setlocale is documented in the manual and can be very useful indeed!

  #5 (permalink)  
Old 06-27-2007
Gin
 
Posts: n/a
Default Re: Vhost time settings

Thank you ! :-)

> well the idea is simply to allow your users to control the locale that
> gets used in your scripts, so that when they log on they see a time
> appropriate to them because the script has detected their location
> (remember their settings) and made a call to setlocale with their
> language code.
> If you could set the system time within a vhost section it would lead
> to all kinds of weirdnesses, where one vhost was able to "cheat a php
> script" which replied on system time to work - a trial script for
> instance. And what would be the use of offsetting a system time for
> one vhost, after all system time is what it is. What you are talking
> about is "how can get php to see stuff" the answer is set it in the
> config section that sets up the environment for each user when they
> first log on.
> Further exmples woulf include internationalisation, paths, font sizes,
> data they saved, user tracking etc.. all require app level settings
> and are thus easy to save to a database, easy to manipulate and set
> per user, or per "site/vhost".
> setlocale is documented in the manual and can be very useful indeed!
>



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:47 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0