Path: csiph.com!usenet.pasdenom.info!aioe.org!newsfeed1.swip.net!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Date: Fri, 06 Sep 2013 19:22:14 +0200 From: Luuk User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 Newsgroups: comp.lang.php Subject: Re: Apache + php + directory browsing + reader for TXT files References: <52272b3b$0$2211$426a74cc@news.free.fr> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <1jfpfa-14l.ln1@luuk.invalid.lan> Lines: 22 NNTP-Posting-Host: 2001:980:9089:1:15ad:7c90:cc90:35eb X-Trace: 1378488601 news.xs4all.nl 15883 [2001:980:9089:1:15ad:7c90:cc90:35eb]:58081 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.php:10725 On 04-09-2013 16:56, Salvatore wrote: > On 2013-09-04, G. wrote: >> Hi, I have a bunch of *.txt files. I would like to put them on my server >> (I already have a running apache2 with PHP5 and Mysql) and allow my students >> to browse directories and read the TXT files. >> >> I spent some time yesterday on applying a CSS to apache's "directory browsing" >> ability. >> >> Now, I would like to go a further step: applying a minimal style to my TXT >> documents with a few rules. (font, size, margins, background color, color, etc.) >> and dynamically producing links from my http://... strings. > > I believe that this is as simple as creating a file called HEADER.html > (make sure you use uppercase lettersi for the word "HEADER") and include > some