I have the following code:
$url = 'http://api.creativecommons.org/rest/1.5/license/standard/get'
.'?commercial=y&derivatives=y&jurisdiction=ca';
$response = simplexml_load_file($url);
echo $response->result->license-name;
Which uses this URL: http://api.creativecommons.org/rest/1.5/license/standard/get?commercial=y&derivatives=y&jurisdiction=ca
But the only output I get is:
PHP Parse error: parse error, expecting
T_STRING' or
T_VARIABLE' or'{'' or
'$'' in /path/to/script.php on line 3
What am I doing wrong?