You need to sign in to do that
Don't have an account?
SlickRicky
Dumbest Question of the Day
Okay, I know this is going to be a dumb question, and I know it's going to irritate some people that I'm even asking, because I'm sure the answer exists somewhere. However, I can't find it easily and so I'm asking for help.
I just want a simple explanation of how to get a php page on my server to connect my salesforce.com account and display any piece of data from that account. I will probably use the Partner WSDL but other than knowing where to find that xml file to download, I am lost. I don't know how to use that xml file or even where to put it for use, much less make a connection through it.
Any help would be appreciated.
If so there is a script in the PHP toolkit that already has this working or are you looking for something else
and no one will get on you man, we all started the same way, Shoot I am still learning
Best
Mike
"installing the toolkit" just means copying the toolkit folder in a directory under your website root directory.
After setting the permissions right and changing the toolkit example files with your salesforce API account information you should just be able to type the path of the example files in your browser.
For example, if you put the salesforce toolkit files in your web root under a directory called sf, you can then go to
http://yourdomain.com/sf/samples/login.php
and be able to log in with your API credentials.
Hope this helps.
--Alex
In PHP4, you will want to use NuSoap, and so you need some code that is customized for that. NuSoap is a script that you can upload to your server to allow you to communicate with SalesForce without having to do modifications to your server, which it doesn't sound like you have the technical expertise to do.
If you have PHP 5 running, then you can just use the toolkit code.
Post your PHP version, and then I will post more detailed instructions for you.
By the way, to get your php version, create a text file called phpinfo.php and upload it to your root html directory, then browse to it in your browser by going to: http://www.mysite.com/phpinfo.php
Here is the code you need to put in the phpinfo.php file:
<?php
phpinfo();
?>
If you want, you can post the contents of that file and I can provide more specific help. However, all I really need is the version number.
Thank you for any help you can give.
Thanks
Thank you
Hi:
I am a newbie... What exactly did you do for the permissions in the php.ini file.. I uploaded it on my server for a test and I can not get the php tool kit to work...
http://www.bharatkishaan.com/sfdc/samples/login.php
I keep getting errors like
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/bharatki/public_html/sfdc/samples/header.inc:9) in /home/bharatki/public_html/sfdc/samples/login.php on line 30
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/bharatki/public_html/sfdc/samples/header.inc:9) in /home/bharatki/public_html/sfdc/samples/login.php on line 30
So I have no idea whats wrong... Someone help...please