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

Problems using Salesforce PHP toolkit from GoDaddy

Are there known problems with using the PHP toolkit from an account hosted by GoDaddy?

I see other people with similar problems, but no resolution.

I'm no PHP expert, but my phpinfo result ( seems to show CURL, OpenSSL, and SOAP as all enabled.

However, I still get the "Could not connect to host" message from login.php 


I'd appreciate any thoughts and experience with GoDaddy's configuration.

Thanks, Steve.   


Turned out to be the simple fact that GoDaddy doesn't allow outbound service calls from a Shared hosting (e.g. cheap) accounts.  You need one of their Virtual Server accounts.

A little documentation on their part would have been nice.

:-)  Steve.

Also, the last time I checked, GoDaddy hosting was using a very old version of PHP. You need to have PHP 5.1 or later to use the latest toolkits.

Partially right David, they've got 5.1.4 on their shared server, but the default was 4.something.  You have to override the default mapping for php to php5 in an .htaccess file for your domain, and then you'll get v5. 

On your own virtual machine I'm sure you can install whatever version you like!

Thanks, Steve.

I just wanted to let people know I got the login.php/welcome.php sample to work with a shared account on godaddy. You have to use the example of using an HTTP SOAP proxy PHP_Toolkit_1.1_Samples#Support_for_HTTP_proxies_in_SOAP_calls

and the proxy values are from here:

which are
    $proxySettings['proxy_host'] = ""; //
    $proxySettings['proxy_port'] = 3128;

I haven't gotten any further but I thought I would share this in case anyone else runs into it.

Thank you! You are the Man! It's realy works!
I am up against the same issue, any help is greatly appreciated.
Here is my login.php5 snippet:
$proxySettings = array();
$proxySettings['proxy_host'] = ""; //
$proxySettings['proxy_port'] = 3128; 

$mySforceConnection = new SforcePartnerClient();
$mySforceConnection->createConnection($wsdl, $proxySettings);

 Thanks for your help