-
Negative zero – what is it?
Computers have two ways of representing numbers: One is called sign and magnitude – usually you have one bit specifying the sign (again, most of time you have 0 for positive and 1 for negative) and the rest of the bits specify the absolute value (“magnitude”) of the number. The other is ordering the numbers…
-
Please welcome a new blogger…
Tim Starling from Wikipedia. In his first blog post he talks about the challenges involved in running a website securely where users can upload arbitrary content. It is very cool and very frightening the same time (because it makes you wonder: how many of the web applications out there are verified to this degree). One…
-
Don’t update to PHP 5.2.7!
-
Fetching files form PHP in a compatible way
I just finished comparing a whole bunch of OS’s to determine which is the most compatible (widely available) way to fetch an external HTTP page from PHP. The winner is: fsockopen – it was available on 100% of the tested systems. I was only interested in HTTP pages, not HTTPS, so the ssl transport might…
-
Dynamic code generation in PHP
-
Creating gradients in PHP
-
Benchmark with care
I saw this site recently: PHPBench.com was constructed as a way to open people’s eyes to the fact that not every PHP code snippet will run at the same speed This is useless! Or let me reformulate: this is misleading! For one, it uses microtime to do the benchmark, which measures physical time as opposed…
-
Subscribing to a members-only SMF forum via RSS
-
Disabling mod_deflate for certain files
-
Profiling PHP with XDebug
Resolving performance problems is hard (even more so when you have to do so with somebody else’s code) and some clear measurements are very welcome. I tried out XDebug some years back when and it didn’t work very well back then, but the latest release seems quite good. Here is how to use its profiler:…