Spare Pencil

Programming

Other categories

Smokescreen visualisation using Flash AS 3.0

I have been messing around a bit in Flash recently. I actually managed to learn many things about the new version of the ActionScript language (AS 3.0). Codewise, it is a huge improvement over AS 2.0 (one reason why I…

Read the rest

Did you know this about PHP?

It occurred to me today that there is actually a difference between using the $GLOBALS array and the global keyword in PHP.

You write:

function foo()
{
   global $var;
}

PHP does:

function foo()
{
   $var =& $GLOBALS['var'];
}

Why does this matter? The manual knows the…

Read the rest

Developing with Symfony

After reading many promising stories about development frameworks such as Ruby on Rails, I decided that I actually had to see it for myself. PHP is probably the one programming language that I know best (at the moment, that is),…

Read the rest

Wordpress and the cookies

Important: The workaround provided in this post is not reliable enough, there is now a more secure way to fix this problem. The new fix is available as a convenient plugin.

Since the release of Wordpress 2.0, a pesky bug has been annoying…

Read the rest

PHP function reference in XML

Sorry for the lack of posts recently, some things have been consuming my time. I do have time for a quick post now, though. ;)

I recently wrote a quick and dirty script that retrieves some useful information from the PHP…

Read the rest

Recent Comments

  • Ken
    on "Advanced Excerp…"
  • ken
    on "Smokescreen vis…"
  • Nathan
    on "Advanced Excerp…"

Other Blogs