Page 1 of 1

PEAR custom include [NOT INSTALLED]

Posted: Wed Jul 09, 2008 5:19 pm
by sweb
i want to use PEAR packages that not install in PEAR directory of PHP. such as a framework.

for example :

Code: Select all

require('./myincludes/PEAR/PEAR.php');
$mytar = new Archive_Tar('mytar');
...
what must i do? :banghead:

Re: PEAR custom include [NOT INSTALLED]

Posted: Wed Jul 09, 2008 5:22 pm
by Benjamin
Download the PEAR packages?

Re: PEAR custom include [NOT INSTALLED]

Posted: Wed Jul 09, 2008 5:41 pm
by sweb
yes i download core PEAR class and any package i need to use.

after that i extract the pear core package in 'myinclude' folder and extract packages in PEAR directory.

Re: PEAR custom include [NOT INSTALLED]

Posted: Wed Jul 09, 2008 5:42 pm
by Benjamin
Cool, did it work?

Re: PEAR custom include [NOT INSTALLED]

Posted: Wed Jul 09, 2008 5:50 pm
by sweb

Code: Select all

Warning: require_once(Text/Wiki.php) [function.require-once]: failed to open stream: No such file or directory in F:\www\temp\gzz\bbc\Text\Wiki\BBCode.php on line 20
this error.

i want to know is anyone use this method ?
is method is optimized and secure ?

instllation of pear is to difficult and some times has errors and the server pear packast sometimes have different version on my localhost packasge i want to use it from this method. :D

Re: PEAR custom include [NOT INSTALLED]

Posted: Wed Jul 09, 2008 5:52 pm
by Benjamin
I don't have any experience using PEAR. I would assume that if the files are in the correct place (or in the include path set in php.ini), the code should perform as advertised.