Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

PHP

Using the l() function example Drupal

print l($update_link, 'node/add/update/'.$view->args[0], array('html' => TRUE, 'query' => array('destination' => 'node/'.$view->args[0]),'attributes' => array('class'=>'add-update')));
https://snipt.net/embed/d32259abcd88298236a1f2be66a8269d/
https://snipt.net/raw/d32259abcd88298236a1f2be66a8269d/
d32259abcd88298236a1f2be66a8269d
php
PHP
1
2016-12-09T19:28:52
True
False
False
/api/public/snipt/88481/
using-the-l-function-example-drupal
<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><span class="x">print l($update_link, &#39;node/add/update/&#39;.$view-&gt;args[0], array(&#39;html&#39; =&gt; TRUE, &#39;query&#39; =&gt; array(&#39;destination&#39; =&gt; &#39;node/&#39;.$view-&gt;args[0]),&#39;attributes&#39; =&gt; array(&#39;class&#39;=&gt;&#39;add-update&#39;)));</span> </span></pre></div> </td></tr></table>
drupal, php

MySQL

Disable drupal securepages after importing db

UPDATE variable SET value = 's:1:"0";' WHERE name = 'securepages_enable';
https://snipt.net/embed/06dada149801ea162d92481a0bd62304/
https://snipt.net/raw/06dada149801ea162d92481a0bd62304/
06dada149801ea162d92481a0bd62304
mysql
MySQL
1
2016-12-10T07:40:02
True
False
False
Oct 18, 2013 at 06:31 AM
/api/public/snipt/88480/
disable-drupal-securepages-after-importing-db
<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><span class="k">UPDATE</span> <span class="n">variable</span> <span class="kt">SET</span> <span class="n">value</span> <span class="o">=</span> <span class="s1">&#39;s:1:&quot;0&quot;;&#39;</span> <span class="k">WHERE</span> <span class="n">name</span> <span class="o">=</span> <span class="s1">&#39;securepages_enable&#39;</span><span class="p">;</span> </span></pre></div> </td></tr></table>
db, drupal, mysql
Copyrighted, illegal, or inappropriate content? Email [email protected].