Manual:Api.php/zh

The api.php file is the external access point for the MediaWiki API. See API:Main page for details on using the API.

采取的措施
Several actions are taken by api.php, including:


 * Check for PHP version 5.2.3 or higher and exit with an error message if a lower version is found.
 * Include WebStart.php.
 * Check if the API is enabled ($wgEnableAPI).
 * Do some stuff to make cross-site requests to the API possible. See $wgCrossSiteAJAXdomains.
 * Construct an  object with the arguments passed via the URL and call its   method to do the actual API stuff.
 * 做一些不同的升级
 * 记录日志

参见

 * API:Main page