Help:Extensions
Jump to navigation
Jump to search
This wiki contains several extensions. Currently enabled extensions will be listed on this page, as well as their use.
Source Code Highlighting
Syntax Highlighting via GoogleCodePrettify: http://www.mediawiki.org/wiki/Extension:GoogleCodePrettify
use <source> tags to include autodetected source formatting. Try <source lang=language>
<?php
// create curl resource
$ch = curl_init();
// set url
curl_setopt($ch, CURLOPT_URL, "example.com");
//return the transfer as a string
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
// $output contains the output string
$output = curl_exec($ch);
// close curl resource to free up system resources
curl_close($ch);
?>