Hey there guys. I'm gettign what should be a trivial php error but I cannot for the life of me find it!
Parse error: syntax error, unexpected '{' in /home/sites/blah.co.uk/public_html/paypal_ipn_test/ipn.php on line 14
My code of ipn.php is:
<?php
// tell PHP to log errors to ipn_errors.log in this directory
ini_set('log_errors', true);
ini_set('error_log', dirname(__FILE__).'/ipn_errors.log');
// intantiate the IPN listener
include('ipnlistener.php');
$listener = new IpnListener();
// tell the IPN listener to use the PayPal test sandbox
$listener->use_sandbox = true;
// try to process the IPN POST
try {
$listener->requirePostMethod();
$verified = $listener->processIpn();
} catch (Exception $e) {
error_log($e->getMessage());
exit(0);
}
// TODO: Handle IPN Response here
?>
I really, really cannot find the error. Could something else be causing this :S?
Thanks, help is much appricaited.
Taios