Help:Extensions

From PS4 Developer wiki
Revision as of 23:02, 11 December 2014 by Euss (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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[edit source]

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);      
?>