Why can't I use openssl_encrypt?

openssl, php

Solution

To use the `openssl_` functions, you have to a) have OpenSSL installed, and b) build PHP with OpenSSL support. See the PHP OpenSSL docs.

To use PHP's OpenSSL support you must also compile PHP `--with-openssl[=DIR]`

Problem

I'm trying to implement a call to openssl_encrypt on my client's web server and I am getting a fatal error `Unknown function: openssl_encrypt()`. I thought requirement was PHP 5.3.0 and above? By the look of the phpinfo() dump the server is running 5.3.3. What gives?

Original source