<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi All-<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><Wipes sweat from brow> <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I had a busy night! Last night I decided to make my Debian
box be more than just a layover for file transfers between machines and a
shoddy web server.  I added Perl and php into my apache install. I
installed MySql and configured my db_users and access etc.  I got together
some photos, imagemagicked them into a variety of contortions and file types
(thumbnails) and I ended up piecing together a basic php web based photo album.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Because my php knowledge is abysmal at best, I borrowed 95%
of what I put up from a program called “slooze”.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>This is where it gets tricky.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I’m using the default apache root /var/www.  I
installed my slooze (as he recommended) in a folder called
“photos”.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I promptly made it “x” only by users, so they
couldn’t go directly to the folder and “see” what was in it
online.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Basically, I point slooze at sub directories within this
“photos” folder. It calls them rolls. It then parses through the “rolls”
aka directories, looking for files that I determine. It uses one type of image
file as a thumb (.gif), and one type as a nicer and larger viewable image(.jpg).
 This all works flawlessly.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>My problem is there are 2 php files in the photos directory
that I want to have varying levels of public access. One is photos.php which
controls basic user access. I want this in the open. I’d like
<randomly points> YOU to be able to go and see my pictures if you have
the desire, without getting touch a user/pass. The other is the admin.php file
that controls all of the photo album administration. If I put an .htaccess file
in the directory and configure apache, everyone will be forced to
authenticate.  Again, let me reiterate, my programming skills are poor.
Beyond dull.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>What I’m trying to do is move EVERYTHING –but-
the photos.php into a sub directory (called admin) and just fix all the
pointers so that it still works.  Then I can use <Directory> or
.htaccess to limit the availability of my admin page.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>This is not enterprise level traffic or corporate secrets.
If someone owns my server, it just sucks for me to put everything back
together. I’m just trying to make something that is kind of neat and moderately
secure. Anyone have any experience with this? Any suggestions for what to use –instead-
of .htaccess files?  I’ve read on apaches website about the dangers
of using .htaccess when you directory structure is –deep- because it
checks each directory as it goes down. I’m not worried about that so
much. Still…<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Give a few pointers folks, if you’ve got a sec!<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>TIA,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Ryan<o:p></o:p></span></font></p>

</div>

</body>

</html>