Page 1 of 1
Using PEAR for Applications
Posted: Fri Feb 22, 2008 8:38 am
by MKayHavoc
I'm new to OOP and PEAR so just looking for some clarification.
If I build an app using PEAR and i use a package that isn't installed on a clients server and I don't have access to install the package, can the package be stored locally within the app?
Re: Using PEAR for Applications
Posted: Fri Feb 22, 2008 12:13 pm
by Christopher
Yes, you can include PHP files from anywhere you have access to. If you prefer you own local copy that is fine.
Re: Using PEAR for Applications
Posted: Fri Feb 22, 2008 2:17 pm
by smudgeit
Or if you want any script to be able to automatically include the files.
Try looking into setting the include_path
Code: Select all
ini_set("include_path", ".:../:./include:../include");
Re: Using PEAR for Applications
Posted: Sat Feb 23, 2008 3:57 am
by MKayHavoc
OK, that's great. Is there any guide or tutorial for doing this that you guys know of?
Re: Using PEAR for Applications
Posted: Sat Feb 23, 2008 12:50 pm
by Christopher
Other than the PHP manual, no. But it is very easy to just experiment a little with different paths to see how it works.
Re: Using PEAR for Applications
Posted: Tue Feb 26, 2008 4:59 am
by MKayHavoc
Ahhh.... go-pear, ingenious!