<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://www.portcommodore.com/dokuwiki/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://www.portcommodore.com/dokuwiki/feed.php">
        <title>Port Commodore - blog:2011_07</title>
        <description></description>
        <link>https://www.portcommodore.com/dokuwiki/</link>
        <image rdf:resource="https://www.portcommodore.com/dokuwiki/lib/exe/fetch.php?media=wiki:dokuwiki.svg" />
       <dc:date>2026-05-29T15:49:38+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://www.portcommodore.com/dokuwiki/doku.php?id=blog:2011_07:07-10_taking_php_below_the_root&amp;rev=1606060527&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.portcommodore.com/dokuwiki/doku.php?id=blog:2011_07:07-16_php_below_the_root_-_part_2&amp;rev=1606060527&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://www.portcommodore.com/dokuwiki/lib/exe/fetch.php?media=wiki:dokuwiki.svg">
        <title>Port Commodore</title>
        <link>https://www.portcommodore.com/dokuwiki/</link>
        <url>https://www.portcommodore.com/dokuwiki/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
    </image>
    <item rdf:about="https://www.portcommodore.com/dokuwiki/doku.php?id=blog:2011_07:07-10_taking_php_below_the_root&amp;rev=1606060527&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-11-22T15:55:27+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>07-10_taking_php_below_the_root</title>
        <link>https://www.portcommodore.com/dokuwiki/doku.php?id=blog:2011_07:07-10_taking_php_below_the_root&amp;rev=1606060527&amp;do=diff</link>
        <description>Taking PHP Below the Root

I&#039;m sure most of us PHP guys have read all the security stuff about how we can best secure our code.  Lots of quick sound bits that sound all that good but trying to implement them is another story.

One that I felt was a challenge is taking my PHP code below the webroot level.  While many I am sure would be satisfied with getting the choice bits under, but I was thinking it would be best if you could get as much as possible.  I could better control what scripts get ac…</description>
    </item>
    <item rdf:about="https://www.portcommodore.com/dokuwiki/doku.php?id=blog:2011_07:07-16_php_below_the_root_-_part_2&amp;rev=1606060527&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-11-22T15:55:27+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>07-16_php_below_the_root_-_part_2</title>
        <link>https://www.portcommodore.com/dokuwiki/doku.php?id=blog:2011_07:07-16_php_below_the_root_-_part_2&amp;rev=1606060527&amp;do=diff</link>
        <description>PHP Below the Root - Part 2

In the last part I discussed the file structure.  Everything will come from one main script, (i.e. index.php)

that script will have the minimum of code, everything else will be fed from deeper libraries.

index.php


session_start();
ini_set(&#039;display_errors&#039;, 1);

// define base wanda path, below web root

$home = $_SERVER[&#039;SCRIPT_FILENAME&#039;];
$loc = explode(&#039;/&#039;,$home);

define(&#039;WANDA_BASE&#039;, implode(&#039;/&#039;,array_slice($loc,0,-2)).&#039;/&#039;);

// Hand over to the page handler
…</description>
    </item>
</rdf:RDF>
