inactive Posted June 29, 2008 Share Posted June 29, 2008 Hey guys, hope I'm in the right forum here. I'm developing a script that integrates with Salesforce.com using the SF API and PHP's SOAP extension. Works great, but I've just been told that the server its to be hosted on only runs PHP 4, which doesn't have the SOAP extension. My first though was that they should just upgrade to PHP 5, but apparently that's not an option. I read on http://www.brainbell.com/tutorials/php/Creating_A_Web_Service_With_PHP_5%27s_SOAP_Extension.htm the following: PHP 5-SOAP originated as a PECL extension. So, it is also possible to use this extension under PHP 4, just grab the code from CVS. However, only having worked with Apache/PHP on Windows before, and considering that the PHP 4 server this is to be hosted on is a Linux box, I'm a bit out of my league, and feel like a bit of a noob here. So does anyone mind explaining the above quote to me if you could, and perhaps a couple of tips on how to get the SOAP extension working with PHP 4 if you've done it before? Thanks for your help. ~Mitch. Quote Link to comment https://forums.phpfreaks.com/topic/112503-php-soap-extention-with-php4/ Share on other sites More sharing options...
trq Posted June 30, 2008 Share Posted June 30, 2008 PECL is simply a repository of php extensions (written in C) just as PEAR is a repository of php classes (written in PHP). Pecl has a command line interface which is available as part of pear, so if you wanted to install the foo exttension it would be as simple as.... pecl install foo Of course in order to install extensions you will need shell access and the correct permissions on the system. Quote Link to comment https://forums.phpfreaks.com/topic/112503-php-soap-extention-with-php4/#findComment-577699 Share on other sites More sharing options...
inactive Posted June 30, 2008 Author Share Posted June 30, 2008 Great thanks for your help. However browsing the PECL libraries on pecl.php.net, I cannot seem to find SOAP, which I guess means its no longer provided/supported. Does anyone else know how i can get the PEAR extension working with PHP 4? Cheers ~Mitch. Quote Link to comment https://forums.phpfreaks.com/topic/112503-php-soap-extention-with-php4/#findComment-577711 Share on other sites More sharing options...
trq Posted June 30, 2008 Share Posted June 30, 2008 Before you go any further, do you have sufficient permissions to install software on the server? Quote Link to comment https://forums.phpfreaks.com/topic/112503-php-soap-extention-with-php4/#findComment-577719 Share on other sites More sharing options...
inactive Posted June 30, 2008 Author Share Posted June 30, 2008 Yes, root, direct physical access to the server. Theoretically I can do anything, however they don't want to make significant changes to the server as there are a few other sites hosted on it which may potentially be affected. Thanks heaps. Quote Link to comment https://forums.phpfreaks.com/topic/112503-php-soap-extention-with-php4/#findComment-577722 Share on other sites More sharing options...
trq Posted June 30, 2008 Share Posted June 30, 2008 Ok, sorry, I didn't read your quote correctly the first time. Soap is no longer in Pecl. Anyway, to build an extension you'll need to grap php's source from php.net, cd into the ext/name_of_extension directory, run phpize then go through the normal ./configure make make install process. I'm not sure attempting to build an extension which looks to have alot of php5 features into php4 will work however. Quote Link to comment https://forums.phpfreaks.com/topic/112503-php-soap-extention-with-php4/#findComment-577729 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.