Re: [PHP] GMT / TimeZone modifications
Thanks for the quick answer! Perhaps you have a smaller code snippet for this? NOTE It wouldn't mind if the entire website would go after one timezone, in this case from GMT+8 to GMT+1. -- Richard, oblivion creations http://oblivion.lunamorena.net [EMAIL PROTECTED] +46 (0) 736 849 531 for sure contact.. "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > setenv() the appropriate timezone, then use strtotime() or mktime() to > create a timestamp. Then setenv() to the other timezone and use date() or > strftime() to convert back into a legible format. > > -Rasmus > > On Thu, 11 Apr 2002, Richard KS wrote: > > > Greetings. > > > > I was wondering if there are any good ways of converting a date into another > > time zone? For instance, from GMT+8 to GMT+1, is this possible in some way? > > > > Like if I have a date written 09.04.2002 14:11, I would like to format it > > into GMT+1.. Any solutions? > > > > Thanks alot > > > > -- > > Richard, > > oblivion creations > > http://oblivion.lunamorena.net > > [EMAIL PROTECTED] > > +46 (0) 736 849 531 for sure contact.. > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] GMT / TimeZone modifications
Greetings. I was wondering if there are any good ways of converting a date into another time zone? For instance, from GMT+8 to GMT+1, is this possible in some way? Like if I have a date written 09.04.2002 14:11, I would like to format it into GMT+1.. Any solutions? Thanks alot -- Richard, oblivion creations http://oblivion.lunamorena.net [EMAIL PROTECTED] +46 (0) 736 849 531 for sure contact.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: http header?
Which of them? A webserver sents quite many variables, and you can access almost everyone of them with PHP. So perhaps giving some specifics? -- Richard, oblivion creations http://oblivion.lunamorena.net [EMAIL PROTECTED] +4+ (0) 736 849 531 for sure contact.. "Marcbey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hello php guys, > > how can i get the http header ? > > > greetings marc > > > -- > --- > magic garden GmbH - Agentur für Informationsarchitektur > > Hermannstr. 15 - 70178 Stuttgart (Am Feuersee) > > www.magic-garden.de ¦ [EMAIL PROTECTED] > > Tel. (07 11) 619 57-42 ¦ Fax (07 11) 615 01 38 > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: My Session don't expire
Try passing Header("Cache-Control: no-cache, must-revalidate"); Header("Pragma: no-cache"); in the beginning of the page, that way all contents MUST be re-valided, thus disabling cache. -- Richard, oblivion creations http://oblivion.lunamorena.net [EMAIL PROTECTED] +4+ (0) 736 849 531 for sure contact.. "Rodrigo Peres" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi list, > > I'm using IE5 on Mac with MacOS 9.2.2. > I've made a script that use session_register(), but even when I quit the > browser the values registered with session still there. > Ex: I run the script, quit the browser, reopen it and do an echo($myvar) > and, the value is there, didn't expire. > How can I correct this??? > > Thank's in advance > > Rodrigo Peres > -- > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Simple problem
Or you could just write $fp1 = Fopen("D:\\log.txt","a+"); fwrite($fp1,"$start\n$array[0]\n$array[1]\n"); to simplify... -- Richard, oblivion creations http://oblivion.lunamorena.net [EMAIL PROTECTED] +4+ (0) 736 849 531 for sure contact.. "Jeff Van Campen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I need insert some variable ito log.txt file but every item (variable) must > > be on other line > > how to do this ? > > If I am understanding your question correctly, you need to add a newline > character (\n) at then end every line. Like so: > > $fp1 = Fopen("D:\\log.txt","a+"); > fwrite($fp1,"$start\n"); > fwrite($fp1,"$array[0]\n"); > fwrite($fp1,"$array[1]\n"); > . > fwrite($fp1,$end); > Fclose($fp1); > > HTH > -jeff > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php