
Warning: Invalid argument supplied for foreach() in .... on line 16
Fatal error: Cannot use string offset as an array in ... on line 27
<?php include('config.php'); $name=$_GET['name']; }else{ exit; }; $artist=$_GET['artist']; }else{ exit; }; $content=object2array(simplexml_load_file('http://ws.audioscrobbler.com/1.0/track/'.$artist.'/'.$name.'/similar.xml')); ?><h1>Podobne</h1> <?foreach($content['track'] as $value){ ?> <? }; ?> <h1>Najwięksi</h1> <? $content=object2array(simplexml_load_file('http://ws.audioscrobbler.com/1.0/track/'.$artist.'/'.$name.'/fans.xml')); foreach($content['user'] as $value){ ?> <?=$value["@attributes"]['username']?>(<?=$value['weight']?>)<Br><? }; ?> <h1>Najwięksi</h1> <? $content=object2array(simplexml_load_file('http://ws.audioscrobbler.com/1.0/track/'.$artist.'/'.$name.'/toptags.xml')); foreach($content['tag'] as $value){ ?> };