EDIT: I want to load the page for each gamertag, so that it creates the images.
EDIT 2: Here is new script I have, if it were working correctly the the page would have more than 2 images on it
<?php
require_once('sql.php');
$result = mysql_query("SELECT * FROM gamertags");
while($row = mysql_fetch_array($result)){
// Prepare gamertag for url
$gamertag = strtolower($row['gamertag']);
//echo $gamertag.'<br />';
$url = "http://halogamertags.com/tags/index.php?player_name=".urlencode($gamertag);
$get_result = file_get_contents($url);
}
?>
1 Answer