- 2010
- 2009
-
2008
- December
- November
- October
- September
- August
- July
- May
- April
- February
-
January
-
Javascript ParseInt("08");
01/09/08
I thought I'd seen it all until today. JavaScript is so "intelligent" that if you try to ParseInt() on "08" you get 0. Why? Because it thinks you're speaking in octal (base 8 numbers) instead of decimal (base 10).
The solution is to either use parseFloat() or -
PHP File downloads - beware the multibyte encoding!
01/07/08
Took me a day to work out why my fread() file transfers were failing - at almost exactly half way. It got me thinking - perhaps the output was being compressed. I turned off mod_deflate. Same problem. Then I started looking at the PHP buffer because I was doing something like this:
while(
-
Javascript ParseInt("08");
- 2007
- 2006



Avatar



