I need to run this script:
But it says that gzfile is disabled in the PHP configuration. Is there any way around that? I really need this script. Thanks.
-Nick

| Code: |
| <?php
$lines = gzfile('http://en9.tribalwars.net/map/village.txt.gz'); if(!is_array($lines)) die("File could not be opened"); $connection = mysql_connect($host, $user, $pass) or die('Unable to connect to the K11R Database'); //Select 'home' Database mysql_select_db($db) or die('Unable to connect to the Villages Database'); foreach($lines as $line) { list($id, $name,$x, $y, $player, $points, $rank) = explode(',', $line); $name = urldecode($name); $name = addslashes($name); mysql_query("INSERT INTO World9_Villages SET id='$id', name='$name', x='$x', y='$y', player='$player', points='$points', rank='$rank'"); } mysql_close($connection); ?> |
But it says that gzfile is disabled in the PHP configuration. Is there any way around that? I really need this script. Thanks.
-Nick
