</tr> </table> <?php /* * update process ---------------------------------------------------------------------------------- */ set_time_limit(3600); // the script will break if this is not set $i = 0; $xml = new XML_data(); // show count of files echo "<p>{$strCountFiles}: " . count($basefiles) . "</p>\n"; foreach ($basefiles as $file) { // get files $result = $http->send_get($webserverDomain, $file, 'file', "update{$i}.gz", true); // returns local filename if (!$result) { // error in http class AA_printErrorMsg($strErrDownload); break; } else { // first file, type = complete --> truncate base tables if ($i == 0 && $filetype == "complete") { // initialize global for storing clubs $GLOBALS['clubstore'] = array(); $temppath = addslashes(dirname($_SERVER['PATH_TRANSLATED']) . "\\tmp\\"); if (mysql_errno() > 0) { AA_printErrorMsg(mysql_errno() . ": " . mysql_error()); break; // important