Jump to content

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/112503-php-soap-extention-with-php4/
Share on other sites

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.

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.

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.