Brain Goo

Carpe Crap ’em

Brain Goo header image 4

Ads help keep this site alive:

Entries Tagged as 'php'

HOWTO use PHP getallheaders() under FastCGI (PHP-FPM, nginx, etc.)

July 14th, 2015 · No Comments

If you use Nginx, PHP-FPM or any other FastCGI method of running PHP you’ve probably noticed that the function getallheaders() does not exist.

[

Tags: How Tos · php · Programming

HOW TO Install mcrypt for PHP on RedHat Linux 6 and Oracle Linux 6

June 4th, 2014 · 1 Comment

This tutorial shows you how to install libmcrypt and the companion PHP module under RedHat Linux 6 and Oracle Linux 6. By default, RHEL and OL do not provide mcrypt or libmcrypt packages for the 6.x release. Subsequently, they don’t provide PHP5 mcrypt modules either. Many PHP apps including PHPMyAdmin and Magento make use of […]

[

Tags: Apache · gcc · How Tos · libmcrypt · linux · mcrypt · Oracle Linux · php · Programming · redhat · Unix

HOW TO Use Multiple Filter Flags in PHP Filter Functions

January 9th, 2014 · 2 Comments

Using multiple filter flags in PHP is easy, but the documentation does not explain it well. The Filter capabilities in PHP 5.3 and above are very powerful and save a ton of effort, but the passing of flags to various filter functions is described minimally as a “bitwise disjunction of flags”. This means you need […]

[

Tags: How Tos · php · Programming