| 2>&1
echo exec("ping -c 1 $domain_bad 2>&1", $output, $return_var);
|
https://snipt.net/embed/a1c173baa3da0cc5c6cd955c78df00c0/
/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>
php
| error_reporting(E_ALL);
ini_set('display_errors', 1);
|
https://snipt.net/embed/f26cc04a358cc409ad6718a045db6275/
/raw/f26cc04a358cc409ad6718a045db6275/
f26cc04a358cc409ad6718a045db6275
text
Text only
2
2025-04-04T11:37:09
True
False
False
Jul 15, 2019 at 03:20 PM
/api/public/snipt/105/
display-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>error_reporting(E_ALL);
</span><span id="L-2"><a name="L-2"></a>ini_set('display_errors', 1);
</span></pre></div>
</td></tr></table>
error, php
| sprintf('%04X%04X-%04X-%04X-%04X-%04X%04X%04X', mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(16384, 20479), mt_rand(32768, 49151), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535));
|
https://snipt.net/embed/c87ac7b6d29bb26f7a38ecff5a4c898a/
/raw/c87ac7b6d29bb26f7a38ecff5a4c898a/
c87ac7b6d29bb26f7a38ecff5a4c898a
text
Text only
1
2025-04-04T11:35:19
True
False
False
Jun 04, 2019 at 04:23 PM
/api/public/snipt/71/
php-generate-guid
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>sprintf('%04X%04X-%04X-%04X-%04X-%04X%04X%04X', mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(16384, 20479), mt_rand(32768, 49151), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535));
</span></pre></div>
</td></tr></table>
guid, php
https://snipt.net/embed/431b667c80e51640b17816784f10b868/
/raw/431b667c80e51640b17816784f10b868/
431b667c80e51640b17816784f10b868
text
Text only
1
2025-04-04T11:35:19
True
False
False
Aug 04, 2018 at 11:52 PM
/api/public/snipt/66/
list-running-php-scripts
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>ps xuww | grep php
</span></pre></div>
</td></tr></table>
linux, php
| $array = array_map('trim', $array);
|
https://snipt.net/embed/46dbf29d4d32a9b201cb7a7da3c62c57/
/raw/46dbf29d4d32a9b201cb7a7da3c62c57/
46dbf29d4d32a9b201cb7a7da3c62c57
text
Text only
1
2025-04-04T11:37:10
True
False
False
Apr 11, 2017 at 01:50 AM
/api/public/snipt/12/
trim-array
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>$array = array_map('trim', $array);
</span></pre></div>
</td></tr></table>
php
| foreach (array_keys($GLOBALS) as $k) unset($$k);
unset($k);
|
https://snipt.net/embed/3dc502278b0f6993c73ed871cd80a420/
/raw/3dc502278b0f6993c73ed871cd80a420/
3dc502278b0f6993c73ed871cd80a420
text
Text only
3
2025-04-04T11:35:20
True
False
False
Jun 20, 2016 at 06:27 PM
/api/public/snipt/147262/
php-unset-all-variables
<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>foreach (array_keys($GLOBALS) as $k) unset($$k);
</span><span id="L-2"><a name="L-2"></a>unset($k);
</span></pre></div>
</td></tr></table>
php