[Typo3-UG Oesterreich] danp_documentdirs - update per externenScript

Reinhard.Hofer at wiesenthal.at Reinhard.Hofer at wiesenthal.at
Tue Dec 13 15:42:58 CET 2005


Danke, so hatte ich es ursprünglich versucht. Hab jetzt nochmal #! /usr/bin/php -q genommen:

#! /usr/bin/php -q
<?php
    define('TYPO3_cliMode', TRUE);
    define(PATH_thisScript, $_ENV['_'] ? $_ENV['_'] : $_SERVER['_']);
    require(dirname(PATH_thisScript).'/conf.php');
    require(dirname(PATH_thisScript).'/'.$BACK_PATH.'init.php');
....

dann kommt folgender Fehler:

Error in argument 1, char 3: option not found
Error in argument 1, char 3: option not found
Usage: php [-q] [-h] [-s [-v] [-i] [-f <file>] |  {<file> [args...]}
  -q             Quiet-mode.  Suppress HTTP Header output.
  -s             Display colour syntax highlighted source.
  -w             Display source with stripped comments and whitespace.
  -f <file>      Parse <file>.  Implies `-q'
  -v             Version number
  -C             Do not chdir to the script's directory
  -c <path>      Look for php.ini file in this directory
  -a             Run interactively
  -d foo[=bar]   Define INI entry foo with value 'bar'
  -e             Generate extended information for debugger/profiler
  -z <file>      Load Zend extension <file>.
  -l             Syntax check only (lint)
  -m             Show compiled in modules
  -i             PHP information
  -h             This help 

mfg

> -----Ursprüngliche Nachricht-----
> Von: typo3-at-bounces at lists.netfielders.de 
> [mailto:typo3-at-bounces at lists.netfielders.de] Im Auftrag von 
> Wolfgang Klinger
> Gesendet: Dienstag, 13. Dezember 2005 15:22
> An: TYPO3 Usergroup Oesterreich
> Betreff: Re: [Typo3-UG Oesterreich] danp_documentdirs - 
> update per externenScript
> 
> 
>  Hallo!
> 
>  Reinhard.Hofer at wiesenthal.at schrieb folgendes am 13.12.2005:
> > Schreibe ich anstatt /php -q,   #! /php -q kommt folgende Meldungen:
> 
>  du wirst kaum deinen PHP Interpreter in "/" haben...
> 
>  wie wär's mit:
> ----
> #! /usr/bin/php -q
> <?php
> // der Rest deines PHP Codes...
> ?>
> ----
> 
> 
>  lg
>  Wolfgang
> 
> _______________________________________________
> Typo3-at mailing list
> Typo3-at at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-at
> 



More information about the TYPO3-at mailing list