Forums / Developer / Inserting article through code problem / Comment41056
Kåre Køhler Høvik
Monday 05 July 2004 3:55:23 am
Try adding this to the start of your script :
include_once( 'kernel/classes/ezscript.php' ); $script =& eZScript::instance( array( 'debug-message' => '', 'use-session' => true, 'use-modules' => true, 'use-extensions' => true ) ); $script->startup(); $script->setUseSiteAccess( $siteaccess ); $script->initialize();
Replace $siteaccess with your admin siteaccess.
--Kåre Høvik
Kåre Høvik