<p>If you want to embed code in a list, you'll need to <a href="http://meta.stackexchange.com/questions/3792/how-to-nest-code-within-a-list-using-markdown">precede it with 8 spaces</a> instead of the usual 4:</p> <ul> <li><p><code>include/db.php</code>: <pre><code>try { <pre><code> $attribs = array( PDO::ATTR_PERSISTENT =&gt; $config['db']['persistent'], PDO::ATTR_ERRMODE =&gt; $config['db']['errormode'] ); $db = new PDO( $config['db']['uri'], $config['db']['user'], $config['db']['pass'], $attribs ); $db-&gt;query("SET NAMES 'utf8'"); $db-&gt;query("SET CHARACTER SET 'utf8'"); </code></pre> } catch (PDOException $e) { print "Error!: " . $e->getMessage() . "<br/>"; die(); } function dbGetEngine() { global $config; return substr($config['db']['uri'], 0, strpos($config['db']['uri'], ':')); } ?> </code></pre></li> <li><p><code>include/config.php</code>: <pre><code>//$config['db']['uri'] = 'sqlite:' . realpath('.') . '/site.db'; // PDO's database access URI $config['db']['uri'] = 'mysql:host=localhost;dbname=sitedb'; // server should be : 195.78.32.7 //$config['db']['uri'] = 'pgsql:host=localhost;dbname=sitedb'; $config['db']['user'] = 'user_goes_here'; // database username $config['db']['pass'] = 'pass_goes_here'; // database password $config['db']['persistent'] = false; // should the connection be persistent $config['db']['errormode'] = PDO::ERRMODE_EXCEPTION; // PDO's error mode ?> </code></pre></li> </ul>