|
Welcome,
Guest
|
|
|
im currently stuck with this error, syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_FUNCTION anyone else experienced same error? and how did you fix it ? any assistance will be highly appreciated
thank you |
|
|
|
Hi Pageodhis,
I highly suspect it's something to do with curly brackets in your code. Mind sending part of the code that is throwing this error? Regards, Lazaro O |
|
Regards,
Lazaro Ong'ele Web Developer Skype: Lazrotep +254-020-249-5438 ; +254-706-191-729 Dagoretti Lane, Off Naivasha Road. Facebook: www.facebook.com/pesapal Twitter: twitter.com/PesaPal Helpdesk: support.pesapal.com This e-mail address is being protected from spambots. You need JavaScript enabled to view it. |
|
here is the full error message Parse error: syntax error, unexpected T_PUBLIC, expecting ',' ';' in /home//public_html/OAuth.php on line 12
sample of the code <?php // vim: foldmethod=marker /* Generic exception class */ class OAuthException extends Exception { // pass } class OAuthConsumer { public $key='************' public $secret;'**********', function __construct($key, $secret, $callback_url=NULL) { $this->key = $key;'' $this->secret = $secret;'' $this->callback_url = $callback_url; } |
|
Last Edit: 12 years, 9 months ago by pageodhis.
|
|
change
public $key='************' public $secret;'**********', to public $key='************'; public $secret='**********; the problem is the '=' sign for secret |
|
|
|