snipt

Ctrl+h for KB shortcuts

PHP

PHP enable error reporting

1
2
3
4
5
6
<?php

ini_set('error_reporting', E_ALL);
ini_set('display_errors',1);

?>
https://snipt.net/embed/fb5131b69d45be5b0e25a5cf279bcebf/
/raw/fb5131b69d45be5b0e25a5cf279bcebf/
fb5131b69d45be5b0e25a5cf279bcebf
php
PHP
6
2019-07-17T18:22:14
True
False
False
/api/public/snipt/15616/
php-enable-error-reporting
<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="cp">&lt;?php</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="nb">ini_set</span><span class="p">(</span><span class="s1">&#39;error_reporting&#39;</span><span class="p">,</span> <span class="k">E_ALL</span><span class="p">);</span> </span><span id="L-4"><a name="L-4"></a><span class="nb">ini_set</span><span class="p">(</span><span class="s1">&#39;display_errors&#39;</span><span class="p">,</span><span class="mi">1</span><span class="p">);</span> </span><span id="L-5"><a name="L-5"></a> </span><span id="L-6"><a name="L-6"></a><span class="cp">?&gt;</span><span class="x"></span> </span></pre></div> </td></tr></table>
debug, error, php