示例#1
0
<?php

error_reporting(E_ALL | E_NOTICE);
require '../src/Gravatar.php';
// Get an email address from the test.php?email= URL parameter
$email = $_GET['email'];
$grav1 = new Gravatar($email);
?>
<html>
<head>
<title>Gravatar for <?php 
echo $grav1->get_email();
?>
</title>
</head>
<body>

<h1>Gravatar for <?php 
echo $grav1->get_email();
?>
</h1>

<h2>Basic usage</h2>

<?php 
echo $grav1;
?>

<h2>Testing all the options</h2>

<?php