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?
Using PEAR for Applications
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Using PEAR for Applications
Yes, you can include PHP files from anywhere you have access to. If you prefer you own local copy that is fine.
(#10850)
Re: Using PEAR for Applications
Or if you want any script to be able to automatically include the files.
Try looking into setting the include_path
Try looking into setting the include_path
Code: Select all
ini_set("include_path", ".:../:./include:../include");Re: Using PEAR for Applications
OK, that's great. Is there any guide or tutorial for doing this that you guys know of?
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Using PEAR for Applications
Other than the PHP manual, no. But it is very easy to just experiment a little with different paths to see how it works.
(#10850)
Re: Using PEAR for Applications
Ahhh.... go-pear, ingenious!