Forum Moderators: bakedjake

Message Too Old, No Replies

'--with-pear=/usr/share/pear'

         

halloweb

10:34 am on Oct 4, 2004 (gmt 0)

10+ Year Member


'--with-pear=/usr/share/pear'
so this means pear is installed but how can I use pear packages (by means of ftp), so uploading a package with pear files and then... how can I make it work

coopster

1:19 pm on Oct 4, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



You'll have to read the documentation for that particular PEAR [pear.php.net] package.

halloweb

2:23 pm on Oct 4, 2004 (gmt 0)

10+ Year Member


allready did but this was not my question I wanted to know when the path in your phpinfo is like that
where do you put your files of that pear package to make them work.

coopster

4:05 pm on Oct 4, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Sorry if I'm misunderstanding you, but you seem to be asking "what is the easiest way to install PEAR packages on your system?" The link I offered provides the answer...


Apart from simply downloading a package, PEAR also provides a command-line interface that can be used to automatically install packages. The manual describes this procedure [pear.php.net] in detail.

Then, as long as the PEAR path is in your configuration, you simply use the PHP include() [php.net] function to include and use the package. If the PEAR path is not in your configuration you can change the

include_path
using ini_set() [php.net] or set_include_path() [php.net].

mincklerstraat

4:18 pm on Oct 4, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



if you get too confused or your host doesn't give you access to this spot and doesn't want to install the packages for whatever reason, you can just include them as nomal include files, as long as you make sure you also include all the other packages upon which that package is dependent. A lot of people seem to not really realize this. Use include_once or require_once to make sure you don't overdo it.