I went to some of the pages on MediaWiki, such as http://meta.wikipedia.org/wiki/How_to_become_a_MediaWiki_hacker and http://meta.wikipedia.org/wiki/MediaWiki_architecture, hoping this would be explained.
I tried:
% cd mediawiki/phase3 % php ./index.php %
That blank line was the output. In other words, there was no output.
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?
thanx - ray
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)
wikitech-l@lists.wikimedia.org