Friday, May 29, 2009

Custom PHP.ini for Loading Zend Framework with Dreamhost

Creating a custom php.ini is really easy.
Just follow these directions:
http://wiki.dreamhost.com/index.php/PHP.ini
Just check your phpinfo() to see what Configuration File is getting loaded after words to make sure you changes took hold.

Thursday, May 28, 2009

Example PHP and AS3 encrypt and decrypt

Still testing this out, but it looks pretty good. I need to update it to use AES-256, but that should be hard.

http://www.zedia.net/2009/as3crypto-and-php-what-a-fun-ride/


Hindsight is 20/20: This method is a worthwhile starting point, but AES-256 needed some additional tweaking. Will post update when I know I have all the kinks worked out and tested.

Wednesday, May 27, 2009

Installing Mcrypt in Ubuntu Desktop for PHP5

Open the Synaptic Package Manager. Search for php5-mcrypt. Start installation. Agree to any additional libraries it might need. Finish Install.

Run
sudo /etc/init.d/apache2 restart
from the command line to restart Apache.
Mcrypt will show up when you execute
phpinfo();
in php.

Locating PHP.ini in Ubuntu

cd etc/php5/apache2
gedit php.ini