Error loading index.php on IIS

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
setec
Forum Newbie
Posts: 1
Joined: Fri Jul 04, 2008 12:35 pm

Error loading index.php on IIS

Post by setec »

I hope this has been answered and someone can just point me to the thread, but I could not find it as I am not 100% sure what to search on..

I have an index.php file that call require_once('./modules.php'); which in turn calls into a series of php files in a sub-directory under root. The main script is under ./modules/Jig/index.php

All of this is on my IIS server.

I put an echo trail through all of the files and index under root gets called, and calls modules under root, but that is where the trail stops unless I type in the full http://www.mydomain.com/index.php, then it calls into the subdirectory scripts.

Am I missing something? Is there some PHP setting for IIS servers that I am missing or did I just do my modules.php file wrong?

:banghead:
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: Error loading index.php on IIS

Post by Benjamin »

If index.php is being called, but the files it is suppose to include are not depending on the URL, I would guess that for some bizarre reason the current working directory is being changed or the code that includes it is in some sort of flow control structure. Without seeing the code I can't help more than that.
Post Reply