+ Start a Discussion
SteveBowerSteveBower 

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 (www.stevebower.com/phpinfo.php) seems to show CURL, OpenSSL, and SOAP as all enabled.

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

(http://www.stevebower.com/sforce-php/samples/login.php)

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

Thanks, Steve.   

e-mail: sforce@stevebower.com

SteveBowerSteveBower
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.

ClaiborneClaiborne
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.
 
SteveBowerSteveBower

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.

Bret3dBret3d
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

http://wiki.apexdevnet.com/index.php/Members: PHP_Toolkit_1.1_Samples#Support_for_HTTP_proxies_in_SOAP_calls

and the proxy values are from here:

http://help.godaddy.com/article.php?article_id=289&topic_id=

which are
    $proxySettings['proxy_host'] = "64.202.165.130"; // proxy.shr.secureserver.net
    $proxySettings['proxy_port'] = 3128;

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

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

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

 Thanks for your help