Forums / Developer / php script problem / Comment47210

Author Topic

Kristof Coomans

Tuesday 24 October 2006 9:12:30 am

Comment47210

Are the nodes you want to fetch accessible by the anonymous user? Otherwise, you need to tell your script to enable the user command line options:

$script->startup();
$options = $script->getOptions( '', '', false, false, array( 'user' => true ) );
$script->initialize();

and login with the --user and --password command line options. eZScript will process these options for you and log in the user with the credentials specified.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org