Brain Goo

Carpe Crap ’em

Brain Goo header image 4

Ads help keep this site alive:


Entries Tagged as '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 […]

[Read more →]

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 […]

[Read more →]

Tags: How Tos · php · Programming

HOWTO: Create a random alpha-numeric string in PHP

January 2nd, 2014 · No Comments

Creating an alpha-numeric string in PHP is easy, but having a quick function you can call is better! This is very useful for things like password generators. To see how to do this in Python, check out this post: …howto-create-a-random-alpha-numeric-string-in-python To see how to do this in Perl check out this post: …howto-create-a-random-alpha-numeric-string-in-perl <?php function […]

[Read more →]

Tags: How Tos · php · Programming