サーバーのSoundcloud.phpに問題があります。私のMAMPインストールでは問題なく動作しますが。基本的に私のテストページはロードされず、Soundcloud.phpに問題を宣言するエラーがログに記録されます:
[03-Apr-2012 03:50:57] PHP Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /home2/mysite/public_html/mysubdomain/Soundcloud.php on line 685
テストコードは問題ありません-ここでは参照用です:
<?php
require 'Soundcloud.php';
$soundcloud = new Services_Soundcloud('Client_ID','Client_Secret', 'Redirect_URI');
try {
$info = json_decode($soundcloud->get('tracks', array('user_id' => 'blumarten')), true);
print_r($info);
}
catch (Services_Soundcloud_Invalid_Http_Response_Code_Exception $e) {
exit($e->getMessage());
}
アカウントをPHP5.3にアップグレードしたばかりですが、それでもエラーが発生します。何かアイデアはありますか?