[TYPO3-core] RFC: cli_dispatch.phpsh
michael at typo3.org
Fri Dec 1 15:01:37 CET 2006
>>> +1, but not tested. Would this also work if the script is still called
>>> from a browser?
>> The "#! /usr/bin/php -q" will be shown unless you add an ob_clean().
>> Anyway, none of the three variables is set in my test enviroment
> It makes no sense to call the cli dispatcher from the browser. After
> all, "cli" means command line interface meaning it will interpret
> command line arguments, print text-only to stdout and stderr etc...
Right, so just forget about it.
> We could provide a generic way writing "scripts" which we could call
> through a CLI dispatcher and a WEB dispatcher. Then we need an api for
> these maintainance scripts to access "command line arguments" (also in
> web) and we need the Web dispatcher itself.
A web dispatcher would probably be useful to some people, yes. But unless I
really need it myself, I won't work on that.
> So I think we should stick to calling the cli dispatcher from the CLI
> and not trying to also handle WEB requests (for which we could create a
> BE module).
Use a newsreader! Check out
More information about the TYPO3-team-core