Getting user's time from web revlet?

Andre Garzia andre at andregarzia.com
Mon Jan 18 19:07:04 EST 2010


AAAAARRRGGGHHHHH!!!!!

okay, it is down to this... browsers send the date header to the server, it
is mandatory but the date header is not being passed to the $_SERVER
variable, which means they are not passing all the headers as they should.

they are just passing some of the http headers, they should simply loop all
sent headers and pass them to the $_SERVER variable.

Damn!!! When I checked, I used firebug to see what my browser is sending,
and the date header is there as expected, it is just not being parsed by the
revserver engine.

On Mon, Jan 18, 2010 at 9:59 PM, Sarah Reichelt <sarah.reichelt at gmail.com>wrote:

> > As for getting the clients time using RevServer files check out the
> variable
> > $_SERVER["Date"], it will contain a timestamp from the browser
> perspective.
> > Hope this helps.
>
> I can't get $_SERVER["Date"] to return anything, although that would
> be really useful.
>
> I have a test page that lists all the elements of the $_SERVER array
> that it can find:
> <http://www.troz.net/onrev/samples/test.irev>
> but it doesn't include a DATE entry.
>
> I would imagine that since On-Rev is server-side scripting, it would
> have no way of getting the time & date from the calling browser. I
> would expect that this would need to use JavaScript (client-side
> scripting) which interacts more directly with the browser.
>
> Cheers,
> Sarah
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



-- 
http://www.andregarzia.com All We Do Is Code.



More information about the use-livecode mailing list