Welcome to WebmasterWorld Guest from 54.166.203.76

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Parse Error

Parse Error

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

New User

5+ Year Member

joined:Sept 29, 2011
posts: 3
votes: 0


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
8:09 am on Sept 29, 2011 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Oct 15, 2004
posts:941
votes: 0


no semicolons on all lines
8:10 am on Sept 29, 2011 (gmt 0)

Full Member

10+ Year Member

joined:Jan 4, 2007
posts:221
votes: 0


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
8:29 am on Sept 29, 2011 (gmt 0)

Senior Member

WebmasterWorld Senior Member penders is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2006
posts: 3123
votes: 0


// 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 > ?
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members