<?php /** * @package Riffles * @link http://www.u-hg.com/ * @author RiffleHatch * @copyright Copyright (c)2014 RiffleHatch */ ?> <?php $url = $_GET['url']; $sgoogle = @file_get_contents( 'https://apis.google.com/_/+1/fastbutton?url=' . urlencode( $url ) ); preg_match( '/\[2,([0-9.]+),\[/', $sgoogle, $gcount ); echo $gcount[1]; ?>