Tuesday, February 10, 2009


I've configured a Virtual Host, 4d.kirby as follows:

ServerName 4d.kirby
DocumentRoot /home/kirby/php_study
AddType application/x-httpd-php .php .html

My thanks to Aimee and her personal journal, A little place of calm for some advice.

I've waded in up to my neck with Apache many times, but there's always "beginner mind" to come home to, along with humility and finding new teachers, including much younger ones. The Internet lets me scour the hinterlands in search of kind souls. And then of course there's O'Reilly's Safari.

Note to self: PHP's copy-on-write is not the same as Python's memory management scheme, as assigning a second name to the same list (array) only delays copying. The moment you update a PHP list through the added name (i.e. variable), a new copy of that array gets created in memory, whereas in Python both names keep pointing to that same list object (everything is an object in Python).