Jump to content

PEAR Newbie question...


russia5

Recommended Posts

[quote]But, if I want to use a function that is PEAR or PECL, how do I do it?  Cut and Paste it from somewhere on my host?  Maybe call it with a tag?[/quote]

Yes, include the script, then call the function or class.

[quote]Also, how would I find out all of the extensions and libraries that my HOST has besides ask them?[/quote]

Use phpinfo() or ask them.
Link to comment
https://forums.phpfreaks.com/topic/16478-pear-newbie-question/#findComment-68915
Share on other sites

I may be wrong, but to use PECL I believe you need to recompile PHP with the extensions flagged.  As for PEAR that is usually just a matter of including the proper file in your script.  I often make a lib directory and store PEAR packages there, for example MDB2...
[code]
require_once 'lib/db/MDB2.php';

// use the package now, huzzah
[/code]
Link to comment
https://forums.phpfreaks.com/topic/16478-pear-newbie-question/#findComment-68916
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.