Skip to main content.

Archives

This is the archive for January 2006

Tuesday, January 17, 2006

A while ago, I wrote about Internet Explorer security zones and dynamically created elements. Until such an element was attached to an existing document, all operations on that element were executed in the zone corresponding with about:blank.

I ran into a similar situation while making changes to automatically activate an ActiveX control.

Monday, January 09, 2006

It's a simple enough question, which you should try to solve in your head: What does the following code display, and why?

<?php
  $i = 1;
  $i += $i++ + ++$i;
  echo 'i=', $i;
?>

Bonus question: Is the result always the same in other programming languages (JavaScript, Java, C#, ...; provided the syntax is adapted to the host language :))? Why (not)?