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. Link to comment https://forums.phpfreaks.com/topic/131411-solved-how-to-use-a-pear-library-without-installing-it/ 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. Link to comment https://forums.phpfreaks.com/topic/131411-solved-how-to-use-a-pear-library-without-installing-it/#findComment-682475 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? Link to comment https://forums.phpfreaks.com/topic/131411-solved-how-to-use-a-pear-library-without-installing-it/#findComment-682516 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. >_< Link to comment https://forums.phpfreaks.com/topic/131411-solved-how-to-use-a-pear-library-without-installing-it/#findComment-682520 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. Link to comment https://forums.phpfreaks.com/topic/131411-solved-how-to-use-a-pear-library-without-installing-it/#findComment-682521 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 Link to comment https://forums.phpfreaks.com/topic/131411-solved-how-to-use-a-pear-library-without-installing-it/#findComment-682723 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. Link to comment https://forums.phpfreaks.com/topic/131411-solved-how-to-use-a-pear-library-without-installing-it/#findComment-684598 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. Link to comment https://forums.phpfreaks.com/topic/131411-solved-how-to-use-a-pear-library-without-installing-it/#findComment-684633 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 Link to comment https://forums.phpfreaks.com/topic/131411-solved-how-to-use-a-pear-library-without-installing-it/#findComment-686324 Share on other sites More sharing options...
ryy705 Posted November 11, 2008 Author Share Posted November 11, 2008 Thx. It worked Link to comment https://forums.phpfreaks.com/topic/131411-solved-how-to-use-a-pear-library-without-installing-it/#findComment-687444 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.