[TYPO3-core] RFC: CLI dispatcher doesn't work with CGI API

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Mon Jul 16 15:13:39 CEST 2007


Michael Stucki schrieb:
> Hi Masi,
> 
>>> Well ".phpsh" is a pretty bad extension for a shell script, but ".php"
>>> isn't better either.
>> Why is .php bad? It just tells you what it is.
> 
> It doesn't run from the browser. At least it's not intended for that...
> 
> In my opinion, it should be clearly visible that this is a commandline
> script whereas usual ".php" files are usually called from a web browser.

Was never that way for Perl.

> Does Windows support cron jobs then?

Yes. It's called scheduler there and works well. Though I advise to use 
"/path/to/php /path/to/script" there (and for Unix cron as well).

> Come on! After all, Windows users can
> still run it, but afaics this is the only kind of "standard" to find the
> right parser.
> 
> So having a shebang that works on 90% of all (production) systems is still
> better than having none at all.

Fine with me if the correct way to call cli_disptach.phpsh is clearly 
documented.

Masi


More information about the TYPO3-team-core mailing list