Some functions on this portal require JavaScript but your browser does not support it or it has been disabled.
Skip to main content
Friday 04 November 2005 11:45:44 pm - 4 replies
Ćukasz Serwatka
Saturday 05 November 2005 7:05:34 am
Hi,
Look on example scripts in /bin/php/*.php this will give you some overview how to build CLI script.
Small example:
include_once( 'lib/ezutils/classes/ezcli.php' ); include_once( 'kernel/classes/ezscript.php' ); $cli =& eZCLI::instance(); $script =& eZScript::instance(); $script->startup(); $script->initialize(); //Your code goes here // include_once( 'lib/ezdb/classes/ezdb.php' ); // $db= =& eZDB::instance() // $result = $db->arrayQuery("SELECT * ..."); $script->shutdown();
Personal website -> http://serwatka.net Blog (about eZ Publish) -> http://serwatka.net/blog
SiXTy
Saturday 05 November 2005 7:39:08 am
I'm using eZScript class already, but something is still wrong...And I can't figure out what's that...E.
Saturday 05 November 2005 11:09:01 am
I've figured it out...the script has to be in eZPublish root...
Kristof Coomans
Saturday 12 November 2005 1:42:31 am
The script doesn't need to be in the eZ publish root dir, it only needs to be executed from the eZ publish root directory.
independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org
You must be logged in to post messages in this topic!