function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
alivepjcalivepjc 

PHP TOOLKIT INSTALLATION

I downloaded the  php devlopment toolkit from source forge. I uploaded the SOAP and PEAR packages and I get the following error:

Warning main(Net/Socket.php): failed to open stream: No such file or directory in htdocs/sforce/HTTP/Request.php on line 47

Fatal error main(): Failed opening required 'Net/Socket.php' (include_path='htdocs/include/') in htdocs/sforce/HTTP/Request.php on line 47

what is Net/Socket.php??

what other package do i need to upload.

thank you for your help..

chris


 

HarryBHarryB

See http://pear.php.net/package/SOAP/download

Dependencies:
...
PEAR Package: Mail_Mime
PEAR Package: HTTP_Request
PEAR Package: Net_URL
PEAR Package: Net_DIME

Cheers,
Harry

 

alivepjcalivepjc

thanks!!!!

now I get this error when I try to login:

Error: curl_exec error 60 error setting cerficate verify locations

thanks again!

 

Park Walker (TAGL)Park Walker (TAGL)
"Error: curl_exec error 60 error setting cerficate verify locations"

I believe that this solved the problem for me:

Put the curl-ca-bundle.crt file from the curl distribution somewhere reasonable (like the php root) and make the following change in PEAR/SOAP/Transport/HTTP.php around line #555


function &_sendHTTPS(&$msg, $options)
{
/* NOTE This function uses the CURL functions
* Your php must be compiled with CURL
*/
if (!extension_loaded('curl')) {
return $this->_raiseSoapFault('CURL Extension is required for HTTPS');
}

// $this->_getRequest($msg, $options);

$ch = curl_init();

// ADD THE FOLLOWING POINTING TO THE LOCATION OF YOUR CERTIFICATE FILE
curl_setopt($ch, CURLOPT_CAINFO, "C:\php\curl-ca-bundle.crt");

// XXX don't know if this proxy stuff is right for CURL
// Arnaud: apparently it is, we have a proxy and it works
// with these lines.
if (isset($options['proxy_host'])) {
sellgrensellgren
if you don't want to mess with your PEAR SOAP libraries, you can add this one line in WebService_SforceService.php:

class WebService_SforceService_Soap extends SOAP_Client
{
  function WebService_SforceService_Soap() {
    $this->setOpt('curl', CURLOPT_CAINFO, 'c:\windows\ca-bundle.crt');
    $this->SOAP_Client("https://www.salesforce.com/services/Soap/u/2.5", 0);
  }
...

You'll need to get the ca-bundle.crt, like from the cURL source distribution(http://curl.haxx.se/download.html)

Message Edited by sellgren on 10-14-2005 09:00 AM