Ray Kiddy wrote:
% cd mediawiki/phase3
% php ./index.php
%
That blank line was the output. In other words, there was no output.
With no title paramter the output will be a redirect to the main page;
since this is done with an HTTP Location header, the command-line PHP
interface probably won't give you anything very useful, just as you
describe.
I was hoping this would just work. I once set up a
fairly large (or too
large) perl-based app and the ability to also invoke it from the command
line, and pass in parameters so that they would be treated as if they
came out of the http headers, was completely invaluable.
Is there some non-obvious way to turn this on?
Try using PHP in CGI mode instead of CLI.
-- brion vibber (brion @
pobox.com)