Welcome to WebmasterWorld Guest from 54.145.44.134

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Parse Error

Parse Error

     

Jagjit

6:26 am on Sep 29, 2011 (gmt 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

omoutop

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

WebmasterWorld Senior Member 10+ Year Member



no semicolons on all lines

Status_203

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

5+ 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 penders is a WebmasterWorld Top Contributor of All Time 5+ 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 > ?
 

Featured Threads

Hot Threads This Week

Hot Threads This Month