Mike Zornek wrote:

I'm getting started with PEAR's DB_DataObject and am trying to follow along
with the tutorial:

http://pear.php.net/manual/en/package.database.db-dataobject.intro-purpose.p
hp

It tells me to create the ini file (which I did) and then run
createTables.php from the command line to generate my class files. I'm
trying to run it and am running into an include issue:

zorn$ php -f createTables.php
/Library/WebServer/Websites/ASMP/config/DB_DataObject.ini

Warning: main(DB/DataObject/Generator.php): failed to open stream: No such
file or directory in /usr/local/php/lib/php/DB/DataObject/createTables.php
on line 22

Fatal error: main(): Failed opening required 'DB/DataObject/Generator.php'
(include_path='.:/usr/lib/php') in
/usr/local/php/lib/php/DB/DataObject/createTables.php on line 22

-- Does the command line have it's own include path. Based on my phpinfo()
mine is: .:/usr/local/php/lib/php

~ Mike
-----
Mike Zornek
Web Designer, Media Developer, Programmer and Geek
Personal site: <http://MikeZornek.com>
New Project: <http://WebDevWiki.com>

THe CLI version of PHP generally does have a different php.ini. Try doing "locate php.ini" and seeing if you find another one. Or, you can try: "locate php | grep ini" in case it's named php-cli.ini (for instance).


--
paperCrane <Justin Patrin>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to