ryy705 Posted November 4, 2008 Share Posted November 4, 2008 Hello, I recall reading in a book that there is a way to use pear libraries without installing them in the server. I think in the example the author downloaded library placed in the application's path. He also linked it with the pear installation in the library. But don't recall any details. This could be very helpful to me while working on a shared server. Does anyone how to do this? Or did I dream the whole thing up? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
F1Fan Posted November 4, 2008 Share Posted November 4, 2008 You should be able to dump the pear files into a folder and then just include them using the path to where ever you put it. Quote Link to comment Share on other sites More sharing options...
ryy705 Posted November 4, 2008 Author Share Posted November 4, 2008 Thank you for your reply. Won't the pear files require other libraries from the pear installation in the server. Or will it all work out since the pear libraries are in php's path? Quote Link to comment Share on other sites More sharing options...
DarkWater Posted November 4, 2008 Share Posted November 4, 2008 It should probably work out fine, but we can't know for sure unless you actually go and try it. >_< Quote Link to comment Share on other sites More sharing options...
F1Fan Posted November 4, 2008 Share Posted November 4, 2008 Yes, it should work. If you get any include errors, just find them and correct them manually. Quote Link to comment Share on other sites More sharing options...
Lodius2000 Posted November 5, 2008 Share Posted November 5, 2008 pear dumps everything in one directory, that you choose, just install it locally then copy it all to your server, should work Quote Link to comment Share on other sites More sharing options...
ryy705 Posted November 7, 2008 Author Share Posted November 7, 2008 Thats sounds like a great idea lodius2000. This way my apps will be very portable. Anything I should watch out for when I try this? Will it be really as simple as uploading a pear folder and linking to the libraries with require_once() ? Thank you for this knowledge. Quote Link to comment Share on other sites More sharing options...
F1Fan Posted November 7, 2008 Share Posted November 7, 2008 That should be all there is to it. Quote Link to comment Share on other sites More sharing options...
Lodius2000 Posted November 9, 2008 Share Posted November 9, 2008 sorry ryy, didnt see your response, yeah it should be that easy, I dont think pear modifies any settings files (php.ini) or such because it doesnt ask for those locations, so drag and drop should do it, let me know though I am interested to know if it works Quote Link to comment Share on other sites More sharing options...
ryy705 Posted November 11, 2008 Author Share Posted November 11, 2008 Thx. It worked Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.