Re: PHP file as homepage?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Phil Neeb wrote:
I've noticed that PHP.net uses index.php as its homepage and well, I'm
curious as to how that's possible. Is it the server setup that allows
them to load a php file as their homepage or something else?

You can specify these, in order or preference, with the DirectoryIndex directive (Apache). In httpd.conf, just do something like this:


DirectoryIndex index.html index.php

This gives preference to a static index, if it exists. You can only use index.php if you want.

Hope that helps.

Chris

--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux