[TYPO3-german] RealURL und Cronjobs
Alexander Herrmann
darignac at googlemail.com
Wed Oct 15 14:16:23 CEST 2008
Wäre es da nicht vielleicht einfacher, in einer versteckten Seite ein
Plugin einzubetten, dass deinen Mailversand regelt und diese Seite
einfach per Cronjob aufzurufen?
So handlen wir das z.B. um Mails zu verschicken. Ob das bei dir
praktikabel ist, hängt natürlich von deinen Anforderungen ab.
ciao
Alex
On Tue, Oct 14, 2008 at 7:52 PM, Marco Weber <marco.weber at uni-trier.de> wrote:
> Hallo,
>
> Also das ist bist jetzt mein Cronjob:
>
> #!/usr/bin/php
> <?php
> // *****************************************
> // Standard initialization of a CLI module:
> // *****************************************
>
> // Defining circumstances for CLI mode:
> define('TYPO3_cliMode', TRUE);
>
> // Defining PATH_thisScript here: Must be the ABSOLUTE path of this
> script in the right context:
> // This will work as long as the script is called by it's absolute path!
> define('PATH_thisScript',$_ENV['_']?$_ENV['_']:$_SERVER['_']);
>
> define('TYPO3_MOD_PATH', '../typo3conf/ext/mweberext1/cli/');
> $BACK_PATH='../../../../typo3/';
> $MCONF['name']='_CLI_cronjob'; // Typo3 BE USERNAME
>
>
> require(dirname(PATH_thisScript).'/'.$BACK_PATH.'init.php');
> // HERE you run your application!
>
> include_once(PATH_site.'typo3/sysext/cms/tslib/class.tslib_content.php');
> $cObj=t3lib_div::makeInstance('tslib_cObj');
> echo $cObj->getTypoLink('hallo', 7);
>
> echo "\n";
>
> ?>
>
>
> Und das ist der OUTPUT:
> mweber at testsrv:~/www/typo3conf/ext/mweberext1/cli>
> /home/mweber/www/typo3conf/ext/mweberext1/cli/test.php
> Fatal error: Call to a member function getPage_noCheck() on a non-object
> in
> /home/mweber/typo3_src-4.2.2/typo3/sysext/cms/tslib/class.tslib_content.php
> on line 5196
>
> Was mache ich noch falsch?
>
> Grüsse
> Marco
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-german
>
More information about the TYPO3-german
mailing list