snipt

Ctrl+h for KB shortcuts

Text only

ionic link

<a href="#/app/privacy">
https://snipt.net/embed/522d98c8977fbab70f716adfe325bdfd/
https://snipt.net/raw/522d98c8977fbab70f716adfe325bdfd/
522d98c8977fbab70f716adfe325bdfd
text
Text only
1
2016-09-27T20:00:25
True
False
False
Jun 27, 2016 at 08:57 PM
/api/public/snipt/147293/
ionic-link
<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 id="L-1"><a name="L-1"></a>&lt;a href=&quot;#/app/privacy&quot;&gt; </span></pre></div> </td></tr></table>
angular, ionic

Text only

Angular Ajax post to PHP

1
2
3
4
5
$headers = apache_request_headers();
if (empty($headers['Content-Length'])) exit;

$input = file_get_contents('php://input');
$post_object = json_decode($input);
https://snipt.net/embed/025b58161eb18a6417782d4d290f23a4/
https://snipt.net/raw/025b58161eb18a6417782d4d290f23a4/
025b58161eb18a6417782d4d290f23a4
text
Text only
6
2016-09-30T15:27:06
True
False
False
/api/public/snipt/146985/
angular-ajax-post-to-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> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>$headers = apache_request_headers(); </span><span id="L-2"><a name="L-2"></a>if (empty($headers[&#39;Content-Length&#39;])) exit; </span><span id="L-3"><a name="L-3"></a> </span><span id="L-4"><a name="L-4"></a>$input = file_get_contents(&#39;php://input&#39;); </span><span id="L-5"><a name="L-5"></a>$post_object = json_decode($input); </span></pre></div> </td></tr></table>
angular, ionic
Copyrighted, illegal, or inappropriate content? Email support@snipt.net.