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 Bernhard Essl  >  Parser 7just7.com  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example
Class: Parser 7just7.com
Extract profile information of an 7just7.com user
Author: By
Last change:
Date: 7 years ago
Size: 836 bytes
 

Contents

Class file image Download
<?php
//user account
$user = 'pride';

//curl
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://7just7.com/'.$user);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$site = curl_exec($ch);
curl_close($ch);


require_once (
"class.parser_7just7.php");
$parser = new Parser7just7($site);

print
"Name: ".$parser->getName()."\n";
print
"Alter: ".$parser->getAlter()."\n";
print
"Wohnort: ".$parser->getWohnort()."\n";
print
"Land: ".$parser->getLand()."\n";
print
"Mitglied seit: ".$parser->getMemberSince()."\n";
print
"Online Status: ".$parser->getOnlineStatus()."\n";
print
"Bildlink: ".$parser->getPic()."\n";
print
"Anzahl Freunde: ".$parser->getFriendsNum()."\n";
//print_r($parser->getFriendsName())."\n";
print "Letzer Besuch: ".$parser->getLastVisit()."\n";
print
"Millionen Counter: ".$parser->getMillionCounter()."\n";
?>