Author Archives: Matt

Trouble Installing PECL’s uploadprogress On OS X – MAMP?

Note – this assumes you are running MAMP on a Mac. For this I’m using Leopard 10.5.8. All you want to do is get this installed so you can have fancy upload bars in your Drupal 7 installation. So you … Continue reading

Posted in Drupal, OS X, PHP | Leave a comment

Put Your 404 Page to Work with URL Splitting

If you launch a new version of a site and the URL structure changes – you can certainly handle most of that with an htaccess file and a 301 Redirect command. But sometimes, as I’ve found at least, this isn’t … Continue reading

Posted in Apache, PHP, SEO | Leave a comment

How to Fix Minify Error: !FAIL: environment : PHP/server does not auto-HTTP-encode content

So you’ve setup PHP Minify and think you’re a good citizen for making your site zippier. You run the tests in min_unit_tests and all pass, except for the last one: !FAIL: environment : PHP/server does not auto-HTTP-encode content (1 of … Continue reading

Posted in Apache, PHP | Leave a comment

Fix: Drupal Site Redirects to p3p0.com

I recently helped a client fix a particularly sneaky site hack. While this pertains to Drupal – similar attacks have been reported in Joomla, or any other PHP based site. The fix here may help still – you’ll just need … Continue reading

Posted in Drupal, PHP | Leave a comment

Pear DB and “DB Error: already exists” On Insert

Note that this post relates to using a MySQL database in conjunction with the PEAR DB module, or any other PEAR module that depends on DB – like DB_TABLE (which I’ve been enjoying). You might run into this error if … Continue reading

Posted in mysql, PHP | Leave a comment

Fancybox: Reload Parent Page When Closed

How to get that darn parent page to refresh itself when you close Fancybox. Continue reading

Posted in jquery | 23 Comments