php-windows Digest 16 Dec 2003 21:00:03 -0000 Issue 2044

2003-12-16 Thread php-windows-digest-help
php-windows Digest 16 Dec 2003 21:00:03 - Issue 2044 Topics (messages 22390 through 22393): Re: Inconsistent php sematics witrh trim() ... or can't trim() handle assignment with same variable? 22390 by: Svensson, B.A.T. (HKG) 22391 by: Sven Schnitzke Re: Inconsistent php s

[PHP-WIN] HTTP header treatment IIS6 & PHP

2003-12-16 Thread Erik Finnman
Hi all, When using a PHP script to pass headers to the webserver, there seems to be someting strange happening when using IIS6. On my development machine (IIS5, Win2000 Professional, PHP 4.3.4), the following PHP script produces the expected result: i.e. the current web page is _not_ reloaded wh

RE: [PHP-WIN] Inconsistent php sematics witrh trim() ... or can't trim() handle assignment with same variable? - "EXPLAINED!!"

2003-12-16 Thread Svensson, B.A.T. (HKG)
Hi all, I actually tried to replicate my problem this morning for a coulegue of mine, but I did not manage!! I were very astonished by that fact. However, the explanation is probaly something like this: I though I did this: while ( !feof($fp) ) { $AccNr = trim($AccNr); /// trim(

AW: [PHP-WIN] Inconsistent php sematics witrh trim() ... or can't trim() handle assignment with same variable?

2003-12-16 Thread Sven Schnitzke
Hello Anders, fyi: \n is LF only (ASCII 10), \r is CR only (ASCII 13), Win newline is CRLF or \r\n and linux/unix newline is \n. LFCR is not a valid newline, so maybe this is the trouble. Wild guess: trim trims spaces, tabs and any kind of newline (so called white space) but no standalone CRs.

RE: [PHP-WIN] Inconsistent php sematics witrh trim() ... or can't trim() handle assignment with same variable?

2003-12-16 Thread Svensson, B.A.T. (HKG)
I wish I could say the same about my code, but your remark is still fruitfull from some points of view: 1) It does work in your special case, but not with me. 2) It does not tell anything about my case. 3) It does tell - me - something about my case! Conclusion: I need to run some few test suits