Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Gerson Minichiello  >  PHP OpenGraph  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example usage
Class: PHP OpenGraph
Extract OpenGraph information from sites
Author: By
Last change:
Date: 2010-05-08 16:07
Size: 221 bytes
 

Contents

Class file image Download
<?php

require_once('phpOpenGraph.class.php');

$og = new phpOpenGraph('http://www.rottentomatoes.com/m/10011268-oceans/');

foreach(
$og->metadata as $key => $value) {
    echo 
$key ': ' $value "<br />\n";
}