When I tested the new feature "(bug 11353) add ability to retrieve raw section content via action=raw " of MediaWiki v1.12 by means of PHP require_once() statement, I met the following error message:
Forbidden Raw pages must be accessed through the primary script entry point.The problem URL isThe correct URL is
- Path_to_Mediawiki/index.php?title=Wiki_Calendar&action=raw
- or Path_to_Mediawiki/index.php?title=Wiki_Calendar&action=raw§ion=n if you want to specify which section (n is the number)
- What if I see a 'URL file-access is disabled in the server configuration' message? -- enable the allow_url_fopen and allow_url_include options in PHP.ini file
allow_url_fopen = On allow_url_include = On
留言
張貼留言