need help structuring portable directory structure

From: Date: Wed, 13 Jun 2007 18:59:09 +0000
Subject: need help structuring portable directory structure
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-27469@lists.php.net to get a copy of this message
Inherited a web site where the Pear packages are "self-included": /adm /adm/spreadsheet_call_call.php /inc /inc/Pear.php /inc/QuickForm.php /inc/QuickForm/...(all quickform directories) And the following is included at the top of /inc/QuickForm.php ini_set('include_path','.;..'); Quickform works through the site by referencing: require_once '../inc/QuickForm.php'; I want to add spreadsheet/writer to the mix. I added: /inc/Writer.php and /inc/Spreadsheet/...(all spreadsheet writer directories) and added ini_set('include_path','.;..'); to /inc/Writer.php The error I get is: "Warning: main(PEAR.php) [function.main]: failed to open stream: No such file or directory in C:\...\inc\Spreadsheet\Excel\Writer\Format.php on line 35" line 35 in that file is: require_once 'PEAR.php'; In the calling page, /adm/spreadsheet_call_call.php, I have: require_once '../inc/Writer.php'; However, Quickform files in QuickForm directories do not have any special ini_set() specifications and they work. Any ideas fow to make this work? Many thanks. ____________________________________________________________________________________ Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. http://mobile.yahoo.com/go?refer=1GNXIC

« previous php.pear.general (#27469) next »