Webcast: Database Sharding at Netlog with MySQL and PHP
An interesting Webcast has just popped up, on MySQL's usage in one of the biggest databases online: Netlog. Netlog, one of the fastest-growing Web communities in Europe, need to ensure its database...
View ArticleWordPress v3.1, v3.2: Don’t Replace (Double & Single) Dashes & (Double &...
WordPress has a built-in feature that will replace a double dash (noted as "--") with a single, but slighly longer, dash. This is great if you're a writer or reporter, but it's damn annoying if you're...
View ArticleMaximizing PHP’s Mail Throughput: To Fork Or Not To Fork?
PHP forking Since I'm experimenting with a high-performance SMTP cluster in my lab, I needed to find out which was the most effective method of sending mails via PHP, to get the most out of my setup....
View ArticleEnabling json_encode And json_decode in PHP < 5.2.0 (JSON)
JSON support is included in PHP version 5.2.0 and later, but if you're running a default 5.1.x stack (like most CentOS systems, since it's in the default repositories), you can get JSON support for...
View ArticlePHPBenelux 2011: Conference Schedule
I'm excited about this weeks PHPBenelux 2011 conference. The line-up is impressive, and the talks look very informative (see: schedule). Even more so after I had to click through every one of them, to...
View ArticleCompiling PHP on a 64bit CentOS installation
When you try to compile your PHP on a CentOS 64bit system, you can run into the following with just the default parameters, about not finding the MySQL development libraries. First, make sure you have...
View ArticleThere’s more to the php.net site than meets the eye
I'll just assume you know of the php.net website. You know, your first reference to any PHP related problem/function/class/... ? But did you know there are a lot more PHP sites out there, that you...
View ArticleInstalling the PECL/PEAR mailparse module for PHP on CentOS
This turned out to have quite a few tricky bits to it. Here's how you can get it up-and-running on a CentOS/RHEL box. First, install the php-devel package as you'll need the headers and phpize tool. #...
View ArticleNginx returning blank white page on PHP parsed with FastCGI or PHP-FPM
I've just spent a while debugging this, was tricky'er than I thought. I had a (in theory) correct Nginx & PHP-FPM config, but whenever a PHP script was being parsed via php-fpm I could only get a...
View ArticlePlesk: passing the authorization headers in PHP when running with...
When you try to pass authorization headers via PHP to provide a login interface, you'll notice it doesn't work when running it with FastCGI enabled in Plesk by default. It does work with the standard...
View ArticleWordPress 3.3: Stop replacing double dashes and single quotes
Oh boy, another update to WordPress, another set of changes to the WordPress core to prevent WordPress from changing the default double dash and single quote characters to the "pretty" HTML versions...
View ArticleA vim configuration for the PHP developer
I'm a fan of vim. I cursed at it for 2 years before I loved it, but I wouldn't want any other editor anymore. However, I do require a few changes to the default behaviour of vim before it suits my...
View ArticleThe hidden images within PHP
This is something I've only just recently found out, but did you know that the logo's of the PHP project are hidden within the PHP source code and can be magically shown using a simple URL string? When...
View ArticleXapian Bindings 1.2.7/8 in PHP: undefined symbol: zend_error_noreturn in...
Slightly frustrated blogpost on Xapian versions 1.2.7 or higher when compiling it for PHP 5.3. If you configure bindings & core it seems to work just fine, but when loading the Xapian module in PHP...
View ArticleFollow-up: use ondemand PHP-FPM masters using systemd
A few days ago, I published a blogpost called A better way to run PHP-FPM. It's gotten a fair amount of attention. It detailed the use of the "ondemand" process manager as well as using a separate...
View ArticleBenchmarking the performance of ‘Wordfence’, a WordPress plugin
The post Benchmarking the performance of ‘Wordfence’, a WordPress plugin appeared first on ma.ttias.be. I decided to give Wordfence a try, a plugin for WordPress. It advertises itself as a Security...
View ArticleClear the APC cache in PHP
The post Clear the APC cache in PHP appeared first on ma.ttias.be. How do you clear the APC cache? There are basically two methods: as a PHP developer, you can use the built-in PHP functions -- or as a...
View ArticleThe PHP circle: from Apache to Nginx and back
The post The PHP circle: from Apache to Nginx and back appeared first on ma.ttias.be. As with many technologies, the PHP community too evolves. And over the last 6 or 7 years, a rather remarkable...
View ArticleGetting Started With PHP
The post Getting Started With PHP appeared first on ma.ttias.be. I stumbled upon a great resource yesterday called The PHPBridge: Get Started. It's a step-by-step guide to teach you PHP. This seems...
View ArticleDrupal 7.33 performance penalty
The post Drupal 7.33 performance penalty appeared first on ma.ttias.be. An interesting post on a performance hit that occurred on Drupal 7.33 where the symptoms are CPU's running at 100%. After...
View Article