brief bare bones tutorial on installing Smarty on Mac OSX 10.4.6
-----------------------------------------------------------------

1.)  First you need to upgrade Pear because Apple ships Tiger with an outdated version of Pear

sudo pear upgrade -o pear



2.) Second Add a channel to Pear because the default channel doesn't have Smarty

sudo pear channel-discover pearified.com



3.) Third Install Smarty package

sudo pear install pearified/Smarty



4.) Fourth Tell PHP where to find the Pear libraries including Smarty

Edit your php.ini file.  (this next command assumes you have BBedit or TextWrangler from BareBones software installed).
    You can of course use whatever plain text editor you have available.

sudo bbedit /etc/php.ini

find the line for include_path and edit it so it looks like this:

include_path = ".:/usr/lib/php:/usr/lib/php/Pearified"



5.) Fifth  Restart the webserver so it's sure to read the changes you just made to the php.ini file

sudo apachectl restart



6.) Sixth tell your php script to include the Smarty libary

require_once('Smarty/Smarty.class.php');
(written 2006 - 05 -29)