Extension:BrokenLinks

Page) is one of the most commonly used scripting programming languages in the world. Scripting language is a high-level programming language for writing scripts (algorithms). PHP was designed by Rasmus Lerdorf in 1995, and was destined for developing Web applications.  focuses mainly on server-side scripting. PHP is applied for creating dynamic websites as well and is maintained by the majority of hosting providers. The PHP language and its interpreter (usually implemented as a  web server's native application) are being developed by the PHP group within the framework of the project with open-source software (accessible for studying, changing and distributing). language is so popular in the web programming due to its simplicity, fast perfomance, wide functionality, cross-platform computer software (works on multiple operating systems) and open source codes.  also widespread in the websites developing because of a big quantity of  intrinsic tools, that help to work with web applications. to the rating of 2013 PHP ranks at the fifth place among the programming languages. As of January 2013, PHP was installed on more than 240 million websites and 2.1 million web-servers.
 * PHP (Hypertext Preprocessor, originally stood for Personal Home
 * Nowadays PHP
 * PHP
 * It`s
 * According
 * PHP also can be used for creating GUI-applications (Graphical user interface).
 * Filename extensions of PHP: .php, .phtml, .php4, .php3, .php5, .phps.

News

 * 2009-06-09: Released version 0.1

Compatibility
Tested on our release of MediaWiki 1.14.0 only.

On MediaWiki 1.18.1 you have to make a little change in BrokenLinks.php (about line 59)

Instead of you have to write Otherwise you will get this error:

 Catchable fatal error: Argument 1 passed to ContextSource::setContext must implement interface IContextSource, null given, called in /path/to/your/wiki/includes/OutputPage.php on line 228 and defined in /path/to/your/wiki/includes/RequestContext.php on line 348

Usage
Install, as per the instructions below, then go to your wiki/Special:BrokenLinks. Select the number of errors you wish to report on and click the button.

Since the script simply steps through each URL in turn the response may take some time, as each URL will have a timeout to observe.

Download instructions
Please cut and paste the code found below and place it in.
 * Note #1: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.
 * Note #2: You must provide a link to an Ajax loading image in the .js file that you create (BrokenLinks.js) in order for this extension to work. For example: var ajax_loader = '';

Installation
To install this extension, add the following to LocalSettings.php:

extensions/BrokenLinks/BrokenLinks.js
That's the lot.