<?
/*****************************************************************************
* export_result.php : Processes export.php form
*****************************************************************************
* $Id: export_result.php,v 1.1 2000/08/17 09:52:40 massiot Exp $
*****************************************************************************
* ZBase - a gateway between the database and the WWW
* Copyright (c) 1999 The ZBase team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*****************************************************************************/
require("srv_html.inc");
require("srv_search.inc");
srv_init();
srv_header(srv_str("html", "search_result_title"));
ignore_user_abort(FALSE);
srv_include($TABLE);
$obj = new $TABLE;
$obj->search();
$fd = fopen("/usr/local/kawet/kawet/html/export.txt", "w");
for ($i = 0; $i < $obj->search_numrows(); $i++) {
$obj->search_fetch_array($i);
$array = srv_getfields($obj->row, $FIELDS);
fwrite($fd, implode("\t", $array)."\n");
}
fclose($fd);
?>
Le résultat est disponible <a href="export.txt">ici</a>.
<?
srv_close();
?>