Установка PEAR

nixsoid

Новичок
Установка PEAR

Установила PHP 4.4.2 и в 'c:/php/ ' есть файл 'go-pear.bat' а в папке 'c:/php/PEAR' есть файл и папка 'go-pear-bundle' и файл 'go-pear'.

Как установит менеджер пакетов?

запускаю двойным щелчком:

go-pear.bat

А тама алерт:

The procedure entry point zend_uv could not be located in the dynamic link library php4ts.dll.
 

nixsoid

Новичок
Вроде я настроила модули.
Просто теперь когда я открываю через браузер страницу:
example_1.php он отрывает этот сгенерированый ексел в отдельном окне MS Excel-a а мне надо что-бы генерировал внутри IE.

example_1.php:

<?php
// Include PEAR::Spreadsheet_Excel_Writer
require_once "Spreadsheet/Excel/Writer.php";

// Create an instance
$xls =& new Spreadsheet_Excel_Writer();

// Send HTTP headers to tell the browser what's coming
$xls->send("test.xls");

// Add a worksheet to the file, returning an object to add data to
$sheet =& $xls->addWorksheet('Binary Count');

// Write some numbers
for ( $i=0;$i<30;$i++ ) {
// Use PHP's decbin() function to convert integer to binary
$sheet->write($i,0,decbin($i));
}

// Finish the spreadsheet, dumping it to the browser
$xls->close();
?>
 
Сверху