homepage Welcome to WebmasterWorld Guest from 54.145.183.169
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Parse Error
Parse Error
Jagjit



 
Msg#: 4368641 posted 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

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 4368641 posted 8:09 am on Sep 29, 2011 (gmt 0)

no semicolons on all lines

Status_203

5+ Year Member



 
Msg#: 4368641 posted 8:10 am on Sep 29, 2011 (gmt 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

penders

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



 
Msg#: 4368641 posted 8:29 am on Sep 29, 2011 (gmt 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 > ?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved