Click to See Complete Forum and Search --> : Apache+php4 -> opening index.php3


OliverW
11-28-2002, 01:14 PM
Hey guys,

I seem to have problem with opening php3 files and especially the index.php3 files. I'm running Apache + php4, and I added the following to my config:


<IfModule mod_dir.c>
DirectoryIndex index.html index.shtml index.cgi index.php index.php4 index.php3
</IfModule>



AddType application/x-httpd-php .php .php4 .php3


But it brings nothing... if I want to open a dir with a index.php3 file in it from my browser it wants me to download it.

If i got to http://somehost.com/somedir it won't work... but if I type: http://somehost.com/somedir/somefile.php3 it does work...

Anybody any ideas?

theN
12-01-2002, 03:59 PM
Originally posted by OliverW
if I want to open a dir with a index.php3 file in it from my browser it wants me to download it.

If i got to http://somehost.com/somedir it won't work... but if I type: http://somehost.com/somedir/somefile.php3 it does work...

Anybody any ideas?
What's the Apache version? was PHP configured as a loadable-module or as a Apache module?

AFAIK, in Apache2 the missing / at the end of http://somehost.com/somedir has something to do with the configure option mod_dir (http://httpd.apache.org/docs-2.0/mod/). It might be what you are looking for.

HTH
theN