T_PUBLIC PHP Error
<p>Getting this error</p>

<p>Parse error: syntax error, unexpected T_PUBLIC in /home/dd112/public_html/src/main.php on line 43</p>

<pre><code>Line 43: public function getMainCategories()
{
    return $this-&gt;_data;
}

public function getTracksInfo($main,$sub)
{
    if (!function_exists('curl_init')) {
         throw new ParserException('Curl is required');
    }
</code></pre>

<p>I've gone ahead and added lines 1 through 43. Client ID is valid on server so ignore blank. </p>

<pre><code>class PlayLists 
{
/**
 * CLIENT ID for soundcloud api
 */
const CLIENT_ID = '';

const SOUNDCLOUD_API_URL = 'http://api.soundcloud.com';

protected $_data = array();

public function __construct()
{
    $this-&gt;_parseConfig();
}

public function getClientId()
{
    return self::CLIENT_ID;
}

protected function _parseConfig()
{
    $sections = @simplexml_load_file(__DIR__.'/config.xml');
    if (!$sections) 
    foreach ($sections as $section) {
        throw new Exception ('Error');
    }
        $name = (string) $section-&gt;attributes()-&gt;name;
        $this-&gt;_data[$name] = array();
        foreach($section as $subsection) {
            $subname = (string)$subsection-&gt;attributes()-&gt;name;
            $this-&gt;_data[$name][$subname] = array();
            foreach ($subsection as $genres) {
                $this-&gt;_data[$name][$subname][] = (string)$genres; 
            }
        }
    }
}

public function getMainCategories()
{
</code></pre>
