Created
March 10, 2015 02:04
-
-
Save ridho1991/dabadfef5733dc8e1294 to your computer and use it in GitHub Desktop.
Grab Google Trends Negara Tertentu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title><?php echo $_GET['name'];;?></title> | |
<meta charset="UTF-8"> | |
</head> | |
<body> | |
<?php | |
require_once('includes.php'); | |
ini_set('max_execution_time', 0); | |
ini_set('memory_limit', '999M'); | |
$country_code=$_GET['code']; | |
$country_name=$_GET['name']; | |
$googletrend=fetch_trends($country_code); | |
echo '<hr>'; | |
echo $country_name.'<br><hr>'; | |
foreach($googletrend as $trend) | |
{ | |
echo $trend.'<br>'; | |
} | |
?> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment