Share » Forums » Developer » Using a module in command line

Using a module in command line

Using a module in command line

Friday 15 April 2005 12:56:14 am - 2 replies

Modified on Friday 15 April 2005 12:58:18 am by Antoine W.

Author Message

Ralph Ekekihl

Friday 15 April 2005 1:42:18 am

Hey!

It looks like you are not inlcuding,

include_once( "lib/ezdb/classes/ezdb.php" );

that one is needed for eZDB instance, otherwise it should work.

Then you can have a look at:

lib/ezutils/classes/ezcli.php
kernel/classes/ezscript.php

too see how you integrate the CLI scripts into ezPublish. Also have a look at the scripts in the
ezpublish/bin/php folder.

Good luck!

Contactivity B.V.
http://www.contactivity.com

Antoine W.

Monday 18 April 2005 1:55:21 am

Thanks Ralph,
Scripts in /bin/php/ helped me.
In fact, $ezdb must be instanciated as below :

$db =& eZDB::instance( $type,
                       array( 'server' => $host,
                              'user' => $user,
                              'password' => $password,
                              'database' => $database ) );

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu