snipt

Ctrl+h for KB shortcuts

PHP

Basic PHP - Show Errors

error_reporting(E_ALL);
ini_set("display_errors", 1); 
https://snippets.siftie.com/embed/3b9c680001e7fb974bab88b941c266af/
/raw/3b9c680001e7fb974bab88b941c266af/
3b9c680001e7fb974bab88b941c266af
php
PHP
2
2019-04-17T05:46:20
True
False
False
/api/public/snipt/22918/
basic-php-show-errors
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="x">error_reporting(E_ALL);</span> </span><span id="L-2"><a name="L-2"></a><span class="x">ini_set(&quot;display_errors&quot;, 1); </span> </span></pre></div> </td></tr></table>
errors, ini, php

INI

INI formatted parameters

1
2
3
4
5
6
enable_filter=1
latest_post_hours=8,12
latest_post_days=1,2,3
latest_post_weeks=1
latest_post_months=1,6
latest_post_years=1
https://snippets.siftie.com/embed/4439b9047698667caa4e26f4b630a6e2/
/raw/4439b9047698667caa4e26f4b630a6e2/
4439b9047698667caa4e26f4b630a6e2
ini
INI
6
2019-04-13T02:40:09
True
False
False
/api/public/snipt/8860/
ini-formatted-parameters
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="na">enable_filter</span><span class="o">=</span><span class="s">1</span> </span><span id="L-2"><a name="L-2"></a><span class="na">latest_post_hours</span><span class="o">=</span><span class="s">8,12</span> </span><span id="L-3"><a name="L-3"></a><span class="na">latest_post_days</span><span class="o">=</span><span class="s">1,2,3</span> </span><span id="L-4"><a name="L-4"></a><span class="na">latest_post_weeks</span><span class="o">=</span><span class="s">1</span> </span><span id="L-5"><a name="L-5"></a><span class="na">latest_post_months</span><span class="o">=</span><span class="s">1,6</span> </span><span id="L-6"><a name="L-6"></a><span class="na">latest_post_years</span><span class="o">=</span><span class="s">1</span> </span></pre></div> </td></tr></table>
ini, joomla, ninjaboard