Re: Pear_Info
| From: | Davey | Date: | Mon, 30 Jun 2003 11:39:50 +0000 |
| Subject: | Re: Pear_Info | ||
| References: | 1 | Groups: | php.pear.dev php.pear.general |
| Request: | Send a blank email to pear-dev+get-17858@lists.php.net to get a copy of this message | ||
Matrix wrote:
Hi.... I install pear on windows system.and install pear_info package already. I write first script on pear.This script show Pear Info. <? require_once 'PEAR/Info.php'; $path = ini_get('include_path'); This line is wrong, firstly, include_path may hold more than one path, PEAR_Info cannot handle this. And if PEAR is in the include_path, it will work anyways.
$info = new PEAR_Info;You might actually want to pass that $path in (though as I've explained, its wrong) using: $info = new PEAR_Info($path);
$info->show(); ?> when run this script.It show error. What's happen?Help me,...............TOO.. MatrixHTH, but as mentioned, an error would be very helpful, aswell as PHP, PEAR and PEAR_Info versions.. - Davey