You need to sign in to do that
Don't have an account?
alivepjc
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
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
thanks!!!!
now I get this error when I try to login:
Error: curl_exec error 60 error setting cerficate verify locations
thanks again!
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'])) {
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