index.php?
Moderator: General Moderators
index.php?
Hi all,
Im a bit new to php. Is it possible to auto load an index file by just typing the path to the folder.
I run a Win NT box with IIS, PHP and MySql
e.g
http://www.somedomain.com/intranet/
Which would load an index.php file automatically?
I know this is probably dead easy, but the manual is not searchable and it is rather large and daunting for a newbie.
Im a bit new to php. Is it possible to auto load an index file by just typing the path to the folder.
I run a Win NT box with IIS, PHP and MySql
e.g
http://www.somedomain.com/intranet/
Which would load an index.php file automatically?
I know this is probably dead easy, but the manual is not searchable and it is rather large and daunting for a newbie.
- Johnm
- Forum Contributor
- Posts: 344
- Joined: Mon May 13, 2002 12:05 pm
- Location: Michigan, USA
- Contact:
Somewhere in the IIS config file you can designate what type of file the web server needs to look for when it accesses a directory. In Apache it is in the httpd.conf file. I am not sure about IIS.
Here.... 2 minutes on Google...
John M
Here.... 2 minutes on Google...
To set the default document (not done this for a while, so bear with me!) , go into IIS service manager, right click on the site root, select properties then select the document tab. It (should) be set to serve default.htm as the default doc. Add index.html (or whatever your 'home page' naming convention is?) and then select ok. I don't think you need to re-start IIS, but I wouldn't be suprised if you have to?
John M
yeah, I noticed that, too.
IIS is a nice webserver but not a "change-content-or-settings"-server. As long as you keep it alone (and it's not attacked :-S ) it's working nicely, but change something, even stop and restart it and the probability of a crash increases rapidly.
I don't want to say "it's crap" but I'm happy whenever I don't have to deal with it. But this is not always a matter of choice....
IIS is a nice webserver but not a "change-content-or-settings"-server. As long as you keep it alone (and it's not attacked :-S ) it's working nicely, but change something, even stop and restart it and the probability of a crash increases rapidly.
I don't want to say "it's crap" but I'm happy whenever I don't have to deal with it. But this is not always a matter of choice....
Well,
I finally got IIS back up and running. Dropped all my app settings
Made the change but it did not work.
I think the problem lies with another scripting engine I have installed called Lasso. I am currently discussing this on the Lasso lists also.
Seems this could be a problem in running both engines on the same server.
I finally got IIS back up and running. Dropped all my app settings
Made the change but it did not work.
I think the problem lies with another scripting engine I have installed called Lasso. I am currently discussing this on the Lasso lists also.
Seems this could be a problem in running both engines on the same server.