Text only
output from exec in php
/raw/a1c173baa3da0cc5c6cd955c78df00c0/
a1c173baa3da0cc5c6cd955c78df00c0
text
Text only
3
2025-04-04T11:37:58
True
False
False
/api/public/snipt/106/
output-from-exec-in-php
<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></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>2>&1
</span><span id="L-2"><a name="L-2"></a>
</span><span id="L-3"><a name="L-3"></a>echo exec("ping -c 1 $domain_bad 2>&1", $output, $return_var);
</span></pre></div>
</td></tr></table>