[PHP] how to get consistent UTC from gmmktime (w/o dst-offset) ????

2002-03-26 Thread Patrick Sibenaler
hi. i'm storing events in a mysql-db, using epoch timestamps to pinpoint the exact date/time for an event. so far, I have been using localtime, being aware that there are inconsistencies in the number of epoch-seconds, when DST flips on and off. nevertheless, that works fine as long as you

[PHP] help: form variables have CR/LF ?

2001-09-21 Thread Patrick Sibenaler
Does anyone know what is going wrong, when all of a sudden, the content of PHP global variables that are generated from a POSTED form, have a CR/LF prepended? That means, looking at a field 'name' where 'john' was typed in, I'm getting a variable $name with the content ' john' instead of

[PHP] help: form fields have CR/LF on submit

2001-09-21 Thread Patrick Sibenaler
I submit a form with multipart/form-data, where a field 'name' contains let's say 'john'. On submit, I do get the expected global $name -variable but the content has a CR/LF or /n character in front of the actual content, like: ' john' instead of 'john'. Can anyone advise on

Re: [PHP] help: form fields have CR/LF on submit

2001-09-21 Thread Patrick Sibenaler
PHP 4.0.4pl1 is used here on an Apache 1.3.14 on a RedHat Linux 7.0 Kernel 2.2.17 Tamas Arpad wrote: On Friday 21 September 2001 17:17, Patrick Sibenaler wrote: I submit a form with multipart/form-data, where a field 'name' contains let's say 'john'. On submit, I do get the expected

Re: [PHP] help: form fields have CR/LF on submit

2001-09-21 Thread Patrick Sibenaler
PHP 4.0.4pl1 is used here on an Apache 1.3.14 on a RedHat Linux 7.0 Kernel 2.2.17 Tamas Arpad wrote: On Friday 21 September 2001 17:17, Patrick Sibenaler wrote: I submit a form with multipart/form-data, where a field 'name' contains let's say 'john'. On submit, I do get

Re: [PHP] help: form fields have CR/LF on submit

2001-09-21 Thread Patrick Sibenaler
PHP 4.0.4pl1 is used here on an Apache 1.3.14 on a RedHat Linux 7.0 Kernel 2.2.17 Tamas Arpad wrote: On Friday 21 September 2001 17:17, Patrick Sibenaler wrote: I submit a form with multipart/form-data, where a field 'name' contains let's say 'john'. On submit, I do get the expected

Re: [PHP] help: form fields have CR/LF on submit

2001-09-21 Thread Patrick Sibenaler
Before others wate their time on this: The bug has officially been filed for RedHat 7.0 and php 4.0.4pl1: http://bugs.php.net/index.php?id=8966 thanks tamas. Tamas Arpad wrote: On Friday 21 September 2001 17:17, Patrick Sibenaler wrote: I submit a form with multipart/form-data

[PHP] how do i get url: response codes?

2001-07-12 Thread Patrick Sibenaler
I've tried for a while now to figure out how to test from within php if a url (http://xxx/file.html) is present and what error code is returned (200,201,202,404, etc...) the only way to test a url seems to be to open file('http://xxx/file.html') and see if it can be done. but that

Re: [PHP] RE: [PHP-WIN] php XML output in IE: no display

2001-07-09 Thread Patrick Sibenaler
IE does some intelligent guessing based on filename extension that will override headers. If you send enough headers in the right sequence you can get it to work right - with a weird name if you want to save it and sometimes a double query on whether or not you want to save it. Tricking it