|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
IIS 5.1 does not run PHP properly under root directory, but fine in all other folders
Hi guys,
I am having a bit of a problem with my IIS. I am not sure why but some of my php files cannot be executed properly when they are being executed in the root directory (eg. http://localhost/ or via my IP). However, if I run the same code under a next directory level (eg. http://localhost/paul/ or http://localhost/ben/ or http://localhost/michael/jordan/), the code would run just fine. So I can conclude there is nothing wrong with my code, but something to do with IIS instead. Then again, what could be wrong? I have checked all premission setting and they are the same for all directories including root. I am very lost. I am running Win XP IIS 5.1 as local host PHP Version 4.3.7 Many thanks Last edited by pkipper : July 7th, 2004 at 03:39 PM. Reason: Need email notification :) |
|
#2
|
|||
|
|||
|
What do you mean by "cannot be executed properly"
__________________
====== Doug G ====== "Hide, hide witch! The good folk come to burn thee. Their keen enjoyment hid behind their gothic mask of duty." -Mark Clifton |
|
#3
|
|||
|
|||
|
Quote:
Anyway, that is not important now as I have managed to solve this problem, but i have no idea how or why it is working now. I tested the php code line by line, to see exactly which part is causing the problem. I copied and pasted each section of the code from index.php (the file that cause the problem) to another file, say temp.php, and tested temp.php each time to see if it runs correctly. I did it till the end of the file, and suprisingly, not a single fault appeared. So I end up with two indentical files, same file size, same code inside and under the same root directory, except with different names (index.php and temp.php). temp.php runs flawlessly, and index.php still does not work. I renamed the troubled file index.php to something else, and renamed temp.php to index.php, and yes, it worked. Why? I do not have a clue. |
![]() |
| Viewing: Dev Shed Forums > System Administration > IIS > IIS 5.1 does not run PHP properly under root directory, but fine in all other folders |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|