Advanced Web Design
     --------------------
 
     21.   My WYSIWYG program creates it's own css information as individual
           files.  Where can I put these css files?  Will my web pages still
           be W3C compliant?
 
           Cascading style sheet files normally reside in a users css folder
           or a master css folder (http://www.olc.edu/css/) managed by the
           web-master.
 
           If you have created additional Cascading style sheets, you can
           either submit them to the webmaster, or locate them inside your
           own directory and insert them into your index.php page like this:
 
           04. <?php include '/www/metacss.html'; ?>
           --.         <link rel="stylesheet" type="text/css" href="my.css" />
           05. </head>
 
     22.   I notice that some of the college web pages link to certain areas
           of the phone database.  What kind of links can I make to the
           phone database and what are the options?
 
           You can use a search string on the phone database to retrieve any
           information based on one (1) of the four (4) categories:
 
           lastname
           firstname
           title
           phone
 
           Remember that if you want to narrow your search to only one item,
           you may have to provide alot of information in your link.  Using
           a search string of 605 on the category phone would most likely
           get you every entry in the database.  Here are four link
           examples:
 
           <a href="/phpdir/search.php?category=lastname&searchstring=Janis">
           All with a last name of Janis</a>
 
           <a href="/phpdir/search.php?category=firstname&searchstring=John">
           Only people named John</a>
 
           <a href="/phpdir/search.php?category=title&searchstring=Director">
           All College Directors</a>
 
           <a href="/phpdir/search.php?category=phone&searchstring=6021">
           Only this phone number</a>
 
     23.   I notice that some of the college web pages link to certain areas
           of the photos database.  How can I do this?
 
           The photos database is not as versatile as the phone database,
           but it is still convenient to use.  You can access the photos
           database by volume or individual picture, but you have to know
           the number of either one to access it.  The format for linking
           to a volume or a picture would look like these:
 
           <a href="/phpoto/picture_list.php?album=10">Picnic</a>
 
           <a href="/phpoto/picture_list.php?picture=508">Cake</a>
 
           I have also created special redirect links for the staff pictures
           that you can use as links based on the users email username.  Ex:
 
           <a href="/local_links/staff/cdelong">Cliff</a>
 
     24.   I have uploaded certain information into my public_html folder but
           I don't want anyone to be able to access it.  Is this possible?
 
           I'm sure people will wonder why anyone would put sensitive data
           into a public folder, and want this data locked, but this
           scenario does happen quite frequently.  There are two (2) ways to
           lock this information, however only one (1) of these ways is
           probably useful for the designer.  The system way is to change
           the protection bits (most likely a topic better discussed inside
           a class).  The apache web server way is with an .htaccess file.
           Create a file called .htaccess in the folder you want protected.
           The contents of the file should have only one (1) line that
           contains:
 
           deny from all
 
     25.   I have created an open (discussion board, news forum, blog, wiki)
           that anyone can access.  Is there a way that I can limit the
           users who access this to only a few people, or just the college
           centers?
 
           You can create an .htaccess file in this directory to contain the
           addresses of the users (or college centers) that you allow
           access:
 
           allow from 10.2.5
           deny from all
 
           (The example above would specify HeSapa addresses. For addresses)
           (to other college centers please refer to the TSS NSA page at:  )
           (http://www.olc.edu/local_links/tss/tssnsa)
 
     26.   The users that I want to access my information are on the
           Internet so I won't know what their addresses are.  Can I
           password protect my web-page information instead of using domain
           or address names?
 
           You can password protect your web-pages, using the .htaccess
           file.  Use the following information inside your .htaccess file
           changing the username(s) and password location where specified:
 
           AuthType Basic
           AuthName "Text to describe your protected area."
           AuthUserFile /usr/local/apache/passwd/password
           Require user doe jones smith
 
           The password file can be located anywhere, however it should be
           placed in a location where the public can not browse to it.  The
           location specified above is such a place, but can only be created
           by the web-master.  Passwords are created with "htpasswd".
 
     27.   Previously, I could drop documents into a folder and then create
           an .htaccess file with AddDescription entries that would describe
           these documents.  With folder browsing shut off, is there still a
           way that I can upload documents and have descriptions of them?
           Can I do this without having to write an html page to do this?
 
           The Apache FancyIndexing browsing that we used to use was not W3C
           compliant, nor would it work with php.  This produced quite a bit
           of maintainance when any portal changes were made.  The recently
           installed php AutoIndex script software has been modified to be
           XHTML 1.1 compliant, handles upload/download/rename/create users,
           folders etc, and a built in function for document descriptions.
 
     28.   I have moved my page to some other directory, or another server.
           How can I create a simple redirect so that my links aren't
           broken?
 
           This is easily accomplished using .htaccess to provide either 301
           or 302 html redirects.  A 302 html redirect means that your page
           has temporarily moved to a new location.  A 301 html redirect
           means that your page has permanently moved to the new location.
           Below are two (2) examples of what these entries look like:
 
           redirect 301 /~user/some.html http://www.other.edu/~user/some.html
           redirect 302 /~user/some.html http://www.other.edu/~user/some.html
 
           Excluding the numeric redirect number, the default is 302.
 
              +--------------------------------------------------+
              |    Designing The OLC Internet (The OLC WebFaq)   |
              |          Guide to Online Internet Access         |
              |           Version 4 - December 20 2011           |
              +--------------------------------------------------+
 
              Copyright (c) 2005-2012,  Brett Bump and James Dudek
                                bbump at olc.edu
                               jdudek at olc.edu

                    Revised 4 January 2012 by James Dudek
 
            All rights reserved. Permission is granted to duplicate and
            distribute copies of this document provided the copyright
            notice and this permission notice are preserved on all copies.

     FAQ Disclaimer
     ------------------------------------------------------------------------
 
     We disclaim everything.  The contents of this article might be totally
     inaccurate, inappropriate, misguided, or otherwise perverse - except for
     our names (you can probably trust me on that).
 
     Copyright (c) 2005-2012, by Brett Bump, James Dudek, all rights reserved.
 
     This FAQ may be posted to any USENET newsgroup, on-line service, web
       site, or BBS as long as it is posted in its entirety and includes this
       copyright statement.
 
     This FAQ may be distributed as class material electronic disk or memory 
       device as long as there is no charge (except to cover materials).
 
     This FAQ may not be distributed for financial gain.
 
     This FAQ may not be included in commercial collections or compilations
       without express permission from the author.
 
     ------------------------------------------------------------------------
     Brett Bump - bbump at olc.edu
     James Dudek - jdudek at olc.edu