PHP

Phoobox – An MVC Version of PHP Fusebox

Pretty early in my professional programming career, I got hooked on the Lasso/FM stack, which most people probably never heard of… and for this reason I was able to get the Lasso code introduced to the 99 Bottles of Beer website – “One Program in 1,500 variations”. My other contribution at that time was to …

Continue Reading
PHP

Mountain Lion, PHP and Clang

It seems that Apple has finally ditched gcc and any remnants of it in Mountain Lion (OS X 10.8). This has been a while in coming so should surprise nobody. If you think you have gcc, fire off an ‘ls -la /usr/bin/gcc’ and see the symlink glory. I’ll write a more comprehensive post on compiling …

Continue Reading
PHP

The Proper Way To Use UTF-8 (PHP/MySQL)

After living in Japan for six years and doing web programming for most of that time, you would think I would have this down by now. I used many combos – from Lasso/FileMaker to PHP/MSSQL and even PHP/PostgreSQL – but never used PHP/MySQL for any CJVK work.  So I did some Googling and found four …

Continue Reading
Apache Apple PHP

Compiling 64-bit Apache/PHP on Mac OS X 10.5.6

Update: The below installation still works on Snow Leopard with PHP 5.3. You can use the latest and greatest of each library/project below and it will still work. However, there is one gotcha. There is a bug somewhere (PHP blames Apple and vice versa) when compiling PHP. To get around this, run the following on …

Continue Reading
PHP

suPHP Premature end of script headers

I don’t really advise using suPHP these days when the power and flexibility of mod_php will handle most of your needs. However, for a shared dev environment where you want to specify the apache user in the config file, suPHP works pretty well. There is one major problem with it though and that is the …

Continue Reading