Manual Install of packages

From: Date: Tue, 23 Aug 2005 13:40:09 +0000
Subject: Manual Install of packages
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20535@lists.php.net to get a copy of this message
Hello, I have a boss who wants me to do some php work with the pear classes. He requires that I have the packages installed manually into a seperate portable folder called "Includes". I guess I just add the path to that folder in the include_path variable in php.ini on the server. But, I am not sure how I am supposed to leave all the folders in the Includes folder after I extract the packages. For example, say i want to use the PEAR.php class, and that is all. Then i have extracted the package called PEAR-1.3.6 as a folder, and placed it in my Includes folder. So, when I use the statement "require_once", do I put it like this: require_once('PEAR-1.3.6/PEAR-1.3.6/PEAR.php') ; as the structure is in the package folders as I have downloaded them, or do I just put in like this: require_once('PEAR.php') ; If it is the latter (which I hope it is), how does the parser know that PEAR is embedded in the 2 deep directory structure of the package? Does it do a search each time (isnt that time consuming? or not! LoL I dont even know what i am talking about!) As is probably obvious, I am new to PEAR, and to an extent using php, but I am tertiary educated in compyuter systems engineering. So I am trying to learn all this php stuff rapidly (!!) and really need to know how to do this asap. I have been on this about a day now, and am finding it a bit confusing. Any help would be greatly appreciated. Thanks Paul

« previous php.pear.general (#20535) next »