Login   Register  
PHP Classes
elePHPant
Icontem

File: Example2.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Matthew Johnston  >  PSN Trophy Data  >  Example2.php  >  Download  
File: Example2.php
Role: Example script
Content type: text/plain
Description: Example 2
Class: PSN Trophy Data
Retrieve PlayStation network trophy data
Author: By
Last change:
Date: 2009-12-31 04:00
Size: 336 bytes
 

Contents

Class file image Download
<?php 
include 'class.psn.php';
$psn = new PSNCard('xnowandtheworldx'true);
echo 
'Latest game played: ' $psn->gameList->game[0]['title'] . '<br/>';
echo 
'Game image: <img src="' $psn->gameList->game[0]['image'] . '"/><br/>';
echo 
'Game trophy URL: <a href="' $psn->gameList->game[0]['trophy_url'] . '">TROPHY URL</a>'
?>