[TYPO3-ect] PEAR extension praxis test

Elmar Hinz elmar07 at googlemail.com
Tue Sep 25 03:19:56 CEST 2007


Hello Daniel, hello world,

today is the opportunity for me, to test the extension pear in praxis. The
environment is a linux debian server with PHP5. I want to make use of the
PEAR mail modules. The exim4 packages are installed and configured to send
mail directly to the web.


Installation:

The installation from TER is straight forward. It's my secend test to
install it and I know what to do already. The autopilot is activated by
default. 

The PEAR channel is configured by default. I add the PEAR channel and the ez
components channel, wich I find by google within a minute. 


Usage:

I use the search feature of the pear manager to search for mail in the
registered channals. PEAR is the only channel to offer stable packeges.
With a click they are installed. 

I find the packages in: typo3conf/ext/pear/PEAR/...


A first bug:

I test to include the files from a script. It immadiatly fails. Debuggi'tng
the include path it turns out that it includes:

 /var/www/dbsv/typo3conf/pear/PEAR

 It surly should be: 

 /var/www/dbsv/typo3conf/ext/pear/PEAR

That is quickly fixed in line 20 of ext_localconf.php.

It works:

Having this little bug fixed, I can use the PEAR libraries to do some
testings with HTML mail generation.

Further considerations:

I find a file "pearPath.php" in the extension, wich I didn't needed.


That simple?

Today I discovered a really simple method to set pathes relative to the
current file, independent of the "back path".

$pearDir = dirname(__FILE__) . '/PEAR/';

Could extension management haven been that simple since years?

Regards

Elmar


































































More information about the TYPO3-team-extension-coordination mailing list