index.php?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hairyjim
Forum Contributor
Posts: 219
Joined: Wed Nov 13, 2002 9:04 am
Location: Warwickshire, UK

index.php?

Post by hairyjim »

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.
User avatar
redcircle
Forum Commoner
Posts: 43
Joined: Fri Jan 31, 2003 8:47 pm
Location: michigan, usa

Post by redcircle »

I would load up Apache and not use IIS
User avatar
Johnm
Forum Contributor
Posts: 344
Joined: Mon May 13, 2002 12:05 pm
Location: Michigan, USA
Contact:

Post by Johnm »

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...
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
User avatar
redcircle
Forum Commoner
Posts: 43
Joined: Fri Jan 31, 2003 8:47 pm
Location: michigan, usa

Post by redcircle »

all that clicking.. I like vi httpd.conf much more.. er edit httpd.conf
hairyjim
Forum Contributor
Posts: 219
Joined: Wed Nov 13, 2002 9:04 am
Location: Warwickshire, UK

Post by hairyjim »

I have little choice I am afraid chaps. Stuck with IIS because of an existing sites framework.
User avatar
Johnm
Forum Contributor
Posts: 344
Joined: Mon May 13, 2002 12:05 pm
Location: Michigan, USA
Contact:

Post by Johnm »

Did that work for you?



John M
hairyjim
Forum Contributor
Posts: 219
Joined: Wed Nov 13, 2002 9:04 am
Location: Warwickshire, UK

Post by hairyjim »

just gonna try. Post in 10 mins and let you know.
hairyjim
Forum Contributor
Posts: 219
Joined: Wed Nov 13, 2002 9:04 am
Location: Warwickshire, UK

Post by hairyjim »

What a surprise IIS brought down my server!

Do not know if it has worked, my services won't start now!! :x
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

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....
hairyjim
Forum Contributor
Posts: 219
Joined: Wed Nov 13, 2002 9:04 am
Location: Warwickshire, UK

Post by hairyjim »

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.
Post Reply