Login   Register  
PHP Classes
elePHPant
Icontem

File: get.og.as.json.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Hensel Hartmann  >  OpenGraph Reader with Template Output  >  get.og.as.json.php  >  Download  
File: get.og.as.json.php
Role: Example script
Content type: text/plain
Description: use the class, part of example
Class: OpenGraph Reader with Template Output
Extract and display OpenGraph data in Web pages
Author: By
Last change:
Date: 2 years ago
Size: 412 bytes
 

Contents

Class file image Download
<?php

/*
 * @author Hensel Hartmann, simpeligent.ch
 * @version 2.0
 * @copyright Hensel Hartmann, simpeligent.ch
 * @license GPL
 * @package OpenGraphReader with Template Output
 * filename: get.og.as.html.php
 * date: 2011-12-31
 *
 */ 

require_once('class.opengraphreader.php');
$p = new opengraphreader();
$p->setURL($_GET['url']);
$arr $p->getOG();
echo 
json_encode($arr);





?>