Pesapal.com

Forum

Welcome, Guest
Username
Password:
 

syntax
(1 viewing) (1) Guest
Welcome to the Pesapal integration forum!

This forum discusses everything about Pesapal integration on your web site. Having any problems? This is the right place to post a question and we are sure you will get an answer
  • Page:
  • 1

TOPIC: syntax

syntax 12 years, 10 months ago #414

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

Re: syntax 12 years, 9 months ago #417

  • lazro
  • OFFLINE
  • Administrator
  • Pesapal
  • Posts: 404
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.

Re: syntax 12 years, 9 months ago #421

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.

Re: syntax 12 years, 9 months ago #434

  • cornie
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
change
public $key='************'
public $secret;'**********',
to

public $key='************';
public $secret='**********;


the problem is the '=' sign for secret
  • Page:
  • 1