Forum Moderators: coopster

Message Too Old, No Replies

Parse Error

Parse Error

         

Jagjit

6:26 am on Sep 29, 2011 (gmt 0)

10+ Year Member



Hi

I have writteen these lines . It is giving me this error on line 6 & 9

Parse error: syntax error, unexpected T_VARIABLE in C:\xampp\htdocs\Salesforce\includes\adapter-config.example.inc.php on line 6


<?php
// Change this to be the salesforce user you want the api calls to use.
$salesforce_user = "abc@gmail.com"

// Change this to be the users password
$salesforce_password = "abc"

// This needs to be the path to your salesforce php library
$soapclient_path = <http://ap1.salesforce.com>
?>

Thanks

omoutop

8:09 am on Sep 29, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



no semicolons on all lines

Status_203

8:10 am on Sep 29, 2011 (gmt 0)

10+ Year Member



No semi-colons to mark the end of the lines.

e.g.

$salesforce_user = "abc@gmail.com"

should be

$salesforce_user = "abc@gmail.com";

or in other words PHP thinks the line looks like:

$salesforce_user = "abc@gmail.com" $salesforce_password = "abc" $soapclient_path = <http://ap1.salesforce.com>

and is complaining about finding the variable $salesforce_password in a place it wasn't expecting to find a variable

penders

8:29 am on Sep 29, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



// This needs to be the path to your salesforce php library
$soapclient_path = "<http://ap1.salesforce.com>";


And, you are missing quotes around your final string. But that doesn't look much like a path to me... may be you just need to remove the < and > ?