osde8info
05-08-2009, 05:51 AM
To use YOUR updated PEAR modules put YOUR php subdir into the PHP include path.
To use Zend download Zend and put the /library/Zend/ subdir into your /you/php/ subdir.
set_include_path('/you/php/' . PATH_SEPARATOR . get_include_path());
// PEAR
require_once "Log.php";
// Zend 1.7
require_once 'Zend/Loader.php';
Zend_Loader::registerAutoload();
// Zend 1.8 & 2.0
require_once 'Zend/Loader/AutoLoader.php';
$autoloader = Zend_Loader_Autoloader::getInstance();
$pdf = new Zend_Pdf();
var_dump($pdf);
See
http://fsse.info/PhpPear
&
http://fsse.info/ZendFramework
for more info
To use Zend download Zend and put the /library/Zend/ subdir into your /you/php/ subdir.
set_include_path('/you/php/' . PATH_SEPARATOR . get_include_path());
// PEAR
require_once "Log.php";
// Zend 1.7
require_once 'Zend/Loader.php';
Zend_Loader::registerAutoload();
// Zend 1.8 & 2.0
require_once 'Zend/Loader/AutoLoader.php';
$autoloader = Zend_Loader_Autoloader::getInstance();
$pdf = new Zend_Pdf();
var_dump($pdf);
See
http://fsse.info/PhpPear
&
http://fsse.info/ZendFramework
for more info