Re: Command line include path?
| From: | Richard Harb | Date: | Wed, 14 Apr 2004 03:42:04 +0000 |
| Subject: | Re: Command line include path? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-183283@lists.php.net to get a copy of this message | ||
If all else fails, try setting the include path in your project:
http://at.php.net/manual/en/function.set-include-path.php
(check out the comments section)
hth
Richard
Tuesday, April 13, 2004, 10:45:23 PM, you wrote:
> I'm getting started with PEAR's DB_DataObject and am trying to follow along
> with the tutorial:
> ÿ¿BŸšVCoU
> ¡×eý‘Þ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>