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: 4 years ago
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";
}