You are here: Re: Pear directory structure... « PHP Programming Language « IT news, forums, messages
Re: Pear directory structure...

Posted by IchBin on 08/03/06 19:55

IchBin wrote:
>
> I am new to PHP and I am running on Windoze XP SP 2. Just noticed that
> the PEAR installed dir structure I have (to DB subdir) is :
> C:\php5.2\PEAR\pear\DB
>
> My registry vars are:
> "PHP_PEAR_SYSCONF_DIR"="C:\\php5.2\\PEAR"
> "PHP_PEAR_INSTALL_DIR"="C:\\php5.2\\PEAR\\pear"
> "PHP_PEAR_DOC_DIR"="C:\\php5.2\\PEAR\\pear\\docs"
> "PHP_PEAR_BIN_DIR"="C:\\php5.2\\PEAR"
> "PHP_PEAR_DATA_DIR"="C:\\php5.2\\PEAR\\pear\\data"
> "PHP_PEAR_PHP_BIN"="c:\\php5.2\\php.exe"
> "PHP_PEAR_TEST_DIR"="C:\\php5.2\\PEAR\\pear\\tests"
>
> Is this correct? Having 'PEAR\pear' does not look right. I guess I
> should have kept PHP's root dir name as 'PHP' but had more than one
> version when I was installing PHP..
>
> When using pears DB the mysql.php returns a reference error for
> require_once 'DB/common.php';
>
> "Failed opening required('DB/common.php'(include_path='.;C:\php5\pear')
>
> In my calling program I use require 'C:/php5.2/PEAR/pear/DB.php';
>
> I have it all out of sync. What should be the pears dir layout so I do
> not have these reference errors. I guess the reference should be:
>
> 'DB/common.php'
>

Forgot to mention that in my php.ini I have:

;***** Added by go-pear
include_path=".;C:\php5.2\PEAR\pear"

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация