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 georg fetz  >  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: 2007-05-26 11:42
Size: 836 bytes
 

Contents

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

//curl
$ch curl_init();
curl_setopt($chCURLOPT_URL'http://7just7.com/'.$user);
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);
$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";
?>