I am integrating PHP with salesforce using SOAP, and use xampp server. It gives me error Class 'SoapClient' not found . after i remove ; before the extension=php_soap.dll and extension=php_openssl.dll and restart the server. then i try to execute PHP script it gives me error apache HTTP server has stop working. code is
define("USERNAME", " USERNAME ");
define("PASSWORD", " PASSWORD ");
define("SECURITY_TOKEN", "SECURITY_TOKEN ");
require_once ('soapclient/SforcePartnerClient.php');
$mySforceConnection = new SforcePartnerClient();
$mySforceConnection->createConnection("PartnerWSDL.xml");
$mySforceConnection->login(USERNAME, PASSWORD.SECURITY_TOKEN);
$query = "SELECT Id, Name,Company ,LeadSource, Status from Lead"; //querying data from object
$response = $mySforceConnection->query($query); //sending request and getting response using SOAP
foreach ($response->records as $record) //iterating through the response and displaying data
{ echo '<tr>
<td>'.$record->Id.'</td>
<td>'.$record->fields->Name.'</td>
<td>'.$record->fields->Company.'</td>
<td>'.$record->fields->LeadSource.'</td>
<td>'.$record->fields->Status.'</td>
</tr>'; }?>
</table>
?>