<?php
include('database.class.php');
$sql = new Database(NULL);
$ids = $sql->select('*', '`ids` ORDER BY `UserId` ASC', NULL, NULL, NULL, true, true);
$dump = array();
foreach ($ids as $index as $id)
$dump[] = $id['UserId'].' | REGLINK - http://xat.com/web_gear/chat/register.php?UserId='.$id['UserId'].'&k2='.$id['k2'].'&mode=1';
$DumpFile = 'ids.txt';
if(file_exists($DumpFile)) {
unlink($DumpFile);
}
file_put_contents($DumpFile, implode("\r\n", $dump));
die(count($dump).' ids were dumped into the list.'."\n");
?>
我已经检查并重试了很多东西,我只是不明白出了什么问题。