setResponseParser('simplexml'); $response = $api->search($search)->get()->getParsedResponse(true); //print_r($response); echo "
"; $i=0; foreach($response->result->primary->media as $user) { $msg="".$user->title." wallpapers
"; echo $msg; $i=$i+1; } echo "
"; } catch (PBAPI_Exception_Response $e) { echo "RESPONSE $e"; } catch (PBAPI_Exception $e) { echo "EX $e"; } include "template/part2.php"; ?>