Extension:Include

Description
This extension lets you include external static content from the file system or remote URL. If the external text is source code then it can be optionally colorized with syntax highlighting. By default the text is automatically wrapped in a &lt;pre&gt;&lt;/pre&gt; tag and all HTML entities are escaped. This can be turned off if you want to include raw text or HTML.

Note that syntax coloring requires the Pear Text_Highlighter module. The extension will run without Text_Highlighter, but the 'highlight' attribute will be disabled. If you try to use it without installing Text_Highlighter include will gracefully return an error message.

Installation
Put this script on your server in your MediaWiki extensions directory: where $IP is the install path of your MediaWiki. Then add this line to LocalSettings.php:

Example Usage in a wikipage
This would include plain text from the given src URL.  The previous example would be rendered in MediaWiki something like this: Network Working Group                                    T. Berners-Lee Request for Comments: 1945                                      MIT/LCS Category: Informational                                     R. Fielding UC Irvine H. Frystyk MIT/LCS May 1996

Hypertext Transfer Protocol -- HTTP/1.0

Status of This Memo

This memo provides information for the Internet community. This memo does not specify an Internet standard of any kind. Distribution of  this memo is unlimited.

IESG Note:

The IESG has concerns about this protocol, and expects this document to be replaced relatively soon by a standards track document.

Abstract

The Hypertext Transfer Protocol (HTTP) is an application-level protocol with the lightness and speed necessary for distributed, collaborative, hypermedia information systems. It is a generic, stateless, object-oriented protocol which can be used for many tasks, such as name servers and distributed object management systems, through extension of its request methods (commands). A feature of  HTTP is the typing of data representation, allowing systems to be   built independently of the data being transferred.

HTTP has been in use by the World-Wide Web global information initiative since 1990. This specification reflects common usage of  the protocol referred to as "HTTP/1.0".

The following example includes the contents of a PHP script. The src points to a local file system path. This could be useful for documenting the script in a wiki. The advantage here is that you could include the script that is actually being used. 

Since you are including PHP source code for display you could also turn on syntax highlighting for PHP. 