IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationIIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old July 7th, 2004, 03:37 PM
pkipper pkipper is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 23 pkipper User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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 :)

Reply With Quote
  #2  
Old July 8th, 2004, 02:11 AM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,703 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 21 h 33 m 53 sec
Reputation Power: 688
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

Reply With Quote
  #3  
Old July 8th, 2004, 02:34 AM
pkipper pkipper is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 23 pkipper User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by Doug G
What do you mean by "cannot be executed properly"
Most php lines are read and can be displayed properly, but when it comes with COOKIE or SETCOOKIE, it keeps on returning me a header error.

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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > IIS 5.1 does not run PHP properly under root directory, but fine in all other folders


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway