For your second problem, check first if you appache is sending the right response.
Connect, using telnet, to localhost:80, and write:
GET /mp3 HTTP/1.0
(two times enter). Apache should send you "301 Moved Permanently" response and
also header "Location: http://localhost/mp3/". If it does, the problem is in your explorer.
I have two very newbie questions..
I want to be able to create a directory index view on my local Apache
server other than the default Apache view (similar to Expow, but not as
complex).. Can anyone recommend a simple script that you know of which
can display Name, Type, Size and Modified Date columns as well as allow
users to browse folders/directories and download the files within them?
I was told browsing subdirectories on Win32 machines isn't possible with
PHP, but I've seen it elsewhere (such as using Expow)..
I assume I could make a simple directory view script myself, but I'm not
familiar enough with PHP to feel comfortable about possible security
issues.. Register globals is off if that has any impact on possible
The second question relates to the first, although it's more of an
Apache question.. I hope someone could help me as I assume it'd be an
easy fix, but I don't know what to search for.. I'm running Apache
1.3.27 on WinXP Pro with PHP 4.2.3 locally.. Whether I type in the
SERVER_ADDR IP address, the computer name, localhost or 127.0.0.1, I
still get this following problem.. If I view this:
I get the default Apache directory index view.. However, if I view this:
http://localhost/mp3 (minus the trailing forward slash)
I can't get a directory listing.. I get the default MSIE error page
similar to no DNS found.. I have most every ErrorDocument number set
correctly and working, but I don't even get an error # or page..
Is there something in Apache's httpd.conf that corrects this? I wasn't
sure if the following has anything to do with this.. With my last setup
(Win98/Apache 1.3.26/PHP 4.1.1), I don't remember having the php.exe
Action & ScriptAlias directive there.. As you probably have guessed, I'm
no expert with Apache either.. When I started Apache in the past on my
old setup, it'd start in console and tell me PHP was running as well..
DirectoryIndex index.html index.o0o index.php
AddType application/x-httpd-php .php .o0o
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php /php/php.exe
ScriptAlias /php/ "D:/Server/PHP/"
FYI: It's not a fulltime, always on server by any means, just something
to let friends grab files from me and allows me to locally test php
scripts when I run it.. Any help is appreciated.. TIA..
Take care.. peace..
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php