Sen 2 armut paketleri gerekir
- PHP-ExcelReader paketi
- Spreadsheet_Excel_Writer paketi
What you need to do is read first the excel file use PHP-ExcelReader paketi
It reads the binary format of XLS files directly and can return values and formats from any cell.
http://code.google.com/p/php-excel-reader/
excel dosyasını okuyun
$data = new Spreadsheet_Excel_Reader("test.xls");
Dosyanın verilerini göstermektedir
$data->dump($row_numbers=false,$col_letters=false,$sheet=0,$table_class='excel')
Once you have stored the data in a variable save the data in another file this time you will use the The Spreadsheet_Excel_Writer paketi
http://pear.php.net/package/Spreadsheet_Excel_Writer
<?php
require_once 'Spreadsheet/Excel/Writer.php';
$workbook = new Spreadsheet_Excel_Writer('test.xls');
$worksheet =& $workbook->addWorksheet('My first worksheet');
if (PEAR::isError($worksheet)) {
die($worksheet->getMessage());
}
$workbook->close();
?>