|
Wednesday 25 October 2006 12:43:37 am
Comment47211
Thanks for your answer. They aren't accessible by anonymous user. I add :
$script =& eZScript::instance( array( '' , 'use-session' => false, 'use-modules' => true, 'use-extensions' => true, 'user' => true ) );
$script->startup();
$scriptOptions = $script->getOptions( '','', false, false, array( 'user' => true ) );
If I launch the script with :
/opt/php/bin/php script.php -v -l admin -p pwdadmin
(because in the help, option --user corresponds to -l, --login)
The result is still "0".
And If I launch the script with :
/opt/php/bin/php script.php -v --login admin -p pwdadmin
=> script.php: option `--login' requires an argument (It's the same with '--password')
|