snipt

Ctrl+h for KB shortcuts

Text only

php in html via .htaccess

AddType application/x-httpd-php .php .htm .html
https://snipt.net/embed/12a3db0d78d2bd9c43ea550685fc69c5/
/raw/12a3db0d78d2bd9c43ea550685fc69c5/
12a3db0d78d2bd9c43ea550685fc69c5
text
Text only
2
2019-07-14T10:00:56
True
False
False
/api/public/snipt/18126/
php-in-html-via-htaccess
<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>AddType application/x-httpd-php .php .htm .html </span></pre></div> </td></tr></table>
htaccess, html, php

ApacheConf

Htaccess Private Files (svn, cvs, sql, etc)

1
2
3
4
# Drupal's way of denying access to delicate server files
<FilesMatch "\.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl|svn-base)$|^(code-style\.pl|Entries.*|Repository|Root|Tag|Template|all-wcprops|entries|format)$">
  Order allow,deny
</FilesMatch>
https://snipt.net/embed/5ce63763c77b5a0c9c89919d8f9720ef/
/raw/5ce63763c77b5a0c9c89919d8f9720ef/
5ce63763c77b5a0c9c89919d8f9720ef
apacheconf
ApacheConf
4
2019-07-21T04:37:40
True
False
False
/api/public/snipt/17855/
htaccess-private-files-svn-cvs-sql-etc
<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></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c"># Drupal&#39;s way of denying access to delicate server files</span> </span><span id="L-2"><a name="L-2"></a><span class="nt">&lt;FilesMatch</span> <span class="s">&quot;\.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl|svn-base)$|^(code-style\.pl|Entries.*|Repository|Root|Tag|Template|all-wcprops|entries|format)$&quot;</span><span class="nt">&gt;</span> </span><span id="L-3"><a name="L-3"></a> <span class="nb">Order</span> allow,deny </span><span id="L-4"><a name="L-4"></a><span class="nt">&lt;/FilesMatch&gt;</span> </span></pre></div> </td></tr></table>
apache, htaccess, svn