<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 18:16:00 +0000</lastBuildDate>
    <item>
      <title>(PHP) PHP/HTML/CSS - Script to scan a directoy recursively with filters and/or ingore list - SoN9ne</title>
      <link>https://snipplr.com/view/46276/phphtmlcss--script-to-scan-a-directoy-recursively-with-filters-andor-ingore-list</link>
      <description>&lt;p&gt;There seems to be many scan directory systems but I could not find one that works the way I needed. I added in functionality for a search filter and an ignore list. The search filter and ignore list can ignore by extension, file (case-sensitive file name), and directory. I also added in the ability to have a max depth for the scan.&#13;
&#13;
The HTML and CSS that are in the script is to preview in the browser the output. If you scan a directory that is outside the webroot then the links will not be built properly. I did not care to resolve this issue as it was not a problem for me.&#13;
&#13;
I tested the script in Strict mode and have no errors, warnings, or notices. Pasting this here for a few friends and the community. If you can improve the script, please let me know as I always enjoy learning new techniques.&#13;
&#13;
Thanks,&#13;
SoN9ne&lt;/p&gt;</description>
      <pubDate>Thu, 30 Dec 2010 09:44:08 UTC</pubDate>
      <guid>https://snipplr.com/view/46276/phphtmlcss--script-to-scan-a-directoy-recursively-with-filters-andor-ingore-list</guid>
    </item>
  </channel>
</rss>
