PHP Classes

File: example.php

Recommend this page to a friend!
  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: 13 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";
}