poshpaws Posted March 10, 2007 Share Posted March 10, 2007 Hi, I'm currently using a shared web server for projects, and only have FTP access to it. I'd like to take advantage of PHP libraries like PEAR, and I was wondering if theres a way to install them on a shared server? Quote Link to comment https://forums.phpfreaks.com/topic/42135-using-php-libraries-on-shared-server/ Share on other sites More sharing options...
per1os Posted March 10, 2007 Share Posted March 10, 2007 You have to request it through your host. You can check if PEAR is installed by a phpinfo.php file and looking there. If it is not you have to request it without SSH access to the server. --FrosT Quote Link to comment https://forums.phpfreaks.com/topic/42135-using-php-libraries-on-shared-server/#findComment-204370 Share on other sites More sharing options...
poshpaws Posted March 10, 2007 Author Share Posted March 10, 2007 I've just checked now, and it's not there Would it be possible to use certain PEAR classes without a full install? Why is an install necessary? (Sorry for the newbie questions...) Quote Link to comment https://forums.phpfreaks.com/topic/42135-using-php-libraries-on-shared-server/#findComment-204377 Share on other sites More sharing options...
per1os Posted March 10, 2007 Share Posted March 10, 2007 PEAR has the base code to do it. Without that base it is impossible, sorry bud your SOL. --FrosT Quote Link to comment https://forums.phpfreaks.com/topic/42135-using-php-libraries-on-shared-server/#findComment-204380 Share on other sites More sharing options...
poshpaws Posted March 10, 2007 Author Share Posted March 10, 2007 Oh well, thanks for clearing that up anyway. I'm probably best off finding a hosting service with PEAR support already. Quote Link to comment https://forums.phpfreaks.com/topic/42135-using-php-libraries-on-shared-server/#findComment-204383 Share on other sites More sharing options...
poshpaws Posted March 10, 2007 Author Share Posted March 10, 2007 Actually, I noticed running a phpinfo() returned the following: soap Soap Client enabled Soap Server enabled If SOAP is enabled, wouldnt that mean that PEAR is already installed? Quote Link to comment https://forums.phpfreaks.com/topic/42135-using-php-libraries-on-shared-server/#findComment-204406 Share on other sites More sharing options...
per1os Posted March 10, 2007 Share Posted March 10, 2007 Does your PEAR functions work? PEAR and SOAP are separate. PEAR provides extra libraries with a bunch of cool features, whereas SOAP is an API utility. --FrosT Quote Link to comment https://forums.phpfreaks.com/topic/42135-using-php-libraries-on-shared-server/#findComment-204413 Share on other sites More sharing options...
poshpaws Posted March 11, 2007 Author Share Posted March 11, 2007 I was doing some searching yesterday, and came across this link: http://builder.com.com/5100-6371-5163311.html As I dont have access to the ini file, I had to insert a bit of code at the top to include it all. I used the following to test if it was installed correctly, which gives a list of all the PEAR packages. <?php // Include the appropriate PEAR classes require_once("PEAR/Info.php"); $pearinfo = &new PEAR_Info(); $pearinfo->getPackages(); $pearinfo->getConfig(); $pearinfo->getCredits(); ?> I guess if its not returning any errors it means its working fine? Quote Link to comment https://forums.phpfreaks.com/topic/42135-using-php-libraries-on-shared-server/#findComment-204858 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.