Hey, guys.

I'm currently trying to pull data from the Playstation 3's PSN API and I'm not entirely sure what I'm doing.

Here is my code, saved as trophycount.php.

PHP Code:
<?php 

$url 
"http://www.psnapi.com.ar/ps3/api/psn.asmx/getPSNID";
$username "vlastanovak"
        
$ch curl_init();     
    
curl_setopt($chCURLOPT_URL$url); 
curl_setopt($chCURLOPT_RETURNTRANSFERtrue); 
curl_setopt($chCURLOPT_POST1); 
curl_setopt($chCURLOPT_TIMEOUT15); 
curl_setopt($chCURLOPT_POSTFIELDS"sPSNID=$username"); 
    
$data curl_exec($ch); 
curl_close ($ch); 
    
echo 
$data;

?>
Here it is online. If you view the source you will see that the XML is being returned.

http://thelumberjack.com.au/trophycount.php

How can I display specific data from the XML feed?

Also, when I change the echo $data line to return $data, the source becomes blank?

Thanks in advance!