[TYPO3-dev] CLI

Laurent Albertini lalbertini at cross-systems.com
Tue Apr 7 13:05:18 CEST 2009


Hi,

I am working with TYPO3 4.2.6 and i am trying to launch a PHP script 
using the CLI mode.
I tried the methode with cli_dispatch.phpsh , but i failed to make work 
the system.
There was some lines of scripts  i have to comment to sucess to launch 
my php script.

In typo3/init.php :
1 - 
include(PATH_typo3conf.$TYPO3_LOADED_EXT['_CACHEFILE'].'_ext_tables.php');
2 - $BE_USER->backendCheckLogin();  /
3 - require_once(PATH_t3lib.'class.t3lib_befunc.php');

Moreover, in t3lib/config_default.php , there is a require of 
temp_CACHED_XXXX_ext_localconf.php . In this file i have ton comment all 
the configuration of imagemap_wizard.

As you could imagine the comment of this line ( in the init.php ) 
destroyed the BE of TYPO3 and the FE :)


I decided to use the depreciated method (consisting to define a 
$BACK_PATH  ), but i still have problems....
My php script make insert in tt_news, and i have to use class.t3lib_db.php.
But the params concerning the DB are in t3lib/config_default.php , and 
so, i have the same problems that using the cli_dispatch.phpsh methode.

I am going to uninstall the extension imagemap_wizard...  perhaps it 
will work.

But do you have any advice on the first problem ?








More information about the TYPO3-dev mailing list