[PHP] mktime() problem
Hi All, This is my first post to this list so forgive me if this has been covered a million times before I'm running 4.0.6 on a Solaris 8 box. The output given by echo mktime(0,0,0,1,1,1970); is 3600. Shouldn't it be 0? My box's locale is set to the UK defaults, so as I write this we are in daylight savings (GMT+1). Would this make a difference? (I have already tried echo mktime(0,0,0,1,1,1970,0); to force non-daylight-savings, but I still get 3600.) Am I doing something wrong, or have I found a bug? Thanks, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Re: mktime() problem
Hi James, Yes, you're right; I got -3600. But shouldn't the time returned reflect the timezone we would be in on that date, rather than the one we are in now? Thanks for your help. James -Original Message- From: liljim [mailto:[EMAIL PROTECTED]] Sent: 23 October 2001 13:53 To: [EMAIL PROTECTED] Subject: [PHP] Re: mktime() problem Hi James, > I'm running 4.0.6 on a Solaris 8 box. The output given by > > echo mktime(0,0,0,1,1,1970); > > is 3600. > > Shouldn't it be 0? My box's locale is set to the UK defaults, so as I write > this we are in daylight savings (GMT+1). Would this make a difference? (I > have already tried I uploaded the same script to my server which is also running BST (GMT +1) : the output was as I expected, -3600 (we gained an hour, so had to lose it somewhere): are you sure your value wasn't minus 3600 also? James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] mktime() problem
Thanks, I'll use gmmktime() from now on! James -Original Message- From: DL Neil [mailto:[EMAIL PROTECTED]] Sent: 23 October 2001 13:54 To: Fairbairn,J,James,IVLH4 C; php-general Subject: Re: [PHP] mktime() problem > I'm running 4.0.6 on a Solaris 8 box. The output given by > echo mktime(0,0,0,1,1,1970); > is 3600. > > Shouldn't it be 0? My box's locale is set to the UK defaults, so as I write > this we are in daylight savings (GMT+1). Would this make a difference? (I > have already tried > echo mktime(0,0,0,1,1,1970,0); > to force non-daylight-savings, but I still get 3600.) Am I doing something > wrong, or have I found a bug? James, Had to worry about this too! Try comparing gmmktime() and mktime(). Regards, =dn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] mktime() problem
Oh dear, I still get -3600 when I do echo gmmktime(0,0,0,1,1,1970); Why? James -Original Message- From: Fairbairn,J,James,IVLH4 C Sent: 23 October 2001 13:57 To: [EMAIL PROTECTED] Subject: RE: [PHP] mktime() problem Thanks, I'll use gmmktime() from now on! James -Original Message- From: DL Neil [mailto:[EMAIL PROTECTED]] Sent: 23 October 2001 13:54 To: Fairbairn,J,James,IVLH4 C; php-general Subject: Re: [PHP] mktime() problem > I'm running 4.0.6 on a Solaris 8 box. The output given by > echo mktime(0,0,0,1,1,1970); > is 3600. > > Shouldn't it be 0? My box's locale is set to the UK defaults, so as I write > this we are in daylight savings (GMT+1). Would this make a difference? (I > have already tried > echo mktime(0,0,0,1,1,1970,0); > to force non-daylight-savings, but I still get 3600.) Am I doing something > wrong, or have I found a bug? James, Had to worry about this too! Try comparing gmmktime() and mktime(). Regards, =dn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Opening a new page when done
just print the following at the point where you decide you want to redirect: a better alternative is to send a redirection header with the response, but this depends on you not sending any HTML output to the browser before processing is complete: hope this helps. james -Original Message- From: Roy W [mailto:[EMAIL PROTECTED]] Sent: 24 October 2001 14:39 To: [EMAIL PROTECTED] Subject: [PHP] Opening a new page when done I have several scripts that when you complete a form it executes a PHP script. At the end of each script I have a simple statement saying it's done and then a place to hyperlink back to a given page: PRINT "Process complete. Click here to continue"; But what I really wanna do is just have the script code execute and when its all done - just take the user automatically to "index.html" or some other page. I know there's a command but cant seem to find it. Thought it might be "include()" but couldn't figure out my syntax Ideas? THANKS!!! :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Redirecting Using Header{} Function
However with Netscape 4.75 when I call any page that has the Header(Refresh) function I get a nasty pop up box which says "The document contains no data". I then click ok and the page loads exactly as it should but no matter what I do I can't stop this pop up box from appearing, IE, Netscape 6 and Opera all work fine. Does any have any ideas??? --- have you tried sending a few chars after the header? that way your doc will have some data in it. unless it's a netscape bug :( -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Parse Error
might be a syntax error in the .lib file you are including (missing ";", possibly)... let me know. -Original Message- From: Alberto [mailto:alberto arround [EMAIL PROTECTED]] Sent: 29 October 2001 10:14 To: [EMAIL PROTECTED] Subject: [PHP] Parse Error Parse error: parse error, expecting `T_VARIABLE' in /sdr/httpd/Prisa/DATA/private/libs/captura/valores.php on line 18 http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Parse Error
oops, missed that one! -Original Message- From: Alexander Weber [mailto:[EMAIL PROTECTED]] Sent: 29 October 2001 10:08 To: Alberto Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Parse Error Just use var $VAL_ID; Names of variables always start with a "$" sign. Alberto wrote: > > Parse error: parse error, expecting `T_VARIABLE' in > /sdr/httpd/Prisa/DATA/private/libs/captura/valores.php on line 18 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]