function xlsWriteNumber($row, $col, $value, $col_width = 0, $cell_picture = 0, $cell_font = 0, $cell_alignment = ALIGN_RIGHT, $cell_status = 0) { $this->check_bounds($row, $col, 'line ' . __LINE__ . ' xlsWriteNumber'); if (!is_int($value) & !is_float($value)) { trigger_error('xlsWriteNumber 3. parameter must be either int or float', E_USER_ERROR); } parent::xlsWriteNumber($row, $col, $value, $col_width, $cell_picture, $cell_font, $cell_alignment, $cell_status); }
function BigFile($iter) { global $fname; $myxls = new BiffBase(); $myxls->outfile = 'big.xls'; set_time_limit(600); $x = 1; for ($r = 0; $r < $iter; $r++) { for ($c = 0; $c <= MAX_COLS; $c++) { $myxls->xlsWriteNumber($r, $c, $x++, 10, 0, FONT_0, ALIGN_RIGHT, 0); } } $myxls->xlsParse($fname); return; }