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:
  #1  
Old November 16th, 2006, 01:56 PM
Techwhore Techwhore is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Location: Albany, NY
Posts: 89 Techwhore User rank is Corporal (100 - 500 Reputation Level)Techwhore User rank is Corporal (100 - 500 Reputation Level)Techwhore User rank is Corporal (100 - 500 Reputation Level)Techwhore User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 8 h 58 m 57 sec
Reputation Power: 10
Converting from Unix/Apache to IIS

My main problem is converting the unix paths to windows.

For instance, on unix i have:

/php
/mysql
/includes
/www (webroot)

Many scripts have lines like this:

Code:
include_once ("/includes/someFile.php");


Do i have to find and replace all of those statements in the code in order for it to work on windows or is there a simpler way?

Thanks in advance.

Reply With Quote
  #2  
Old November 16th, 2006, 05:13 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 13th Plane (11000 - 11499 posts)
 
Join Date: Jun 2003
Posts: 11,141 Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 17 h 15 m 54 sec
Reputation Power: 857
You could just make /includes be part of your web would be easiest. ASP uses physical disk paths as the argument for includes, which means you wouldn't have to do anything different, if php uses a physical disk path rather than a web path then you wouldn't have to change anything at all.

Otherwise there are many editors that offer find & replace but IIS itself doesn't.
__________________
======
Doug G
======
I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain

Reply With Quote
  #3  
Old November 17th, 2006, 09:02 AM
Veamon's Avatar
Veamon Veamon is offline
Blowing up trees with my mind.
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Feb 2005
Location: Neverland Ranch, minus the touching.
Posts: 2,786 Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)  Folding Points: 148670 Folding Title: Super Ultimate Folder - Level 1Folding Points: 148670 Folding Title: Super Ultimate Folder - Level 1Folding Points: 148670 Folding Title: Super Ultimate Folder - Level 1Folding Points: 148670 Folding Title: Super Ultimate Folder - Level 1Folding Points: 148670 Folding Title: Super Ultimate Folder - Level 1Folding Points: 148670 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Weeks 4 Days 13 h 6 m 43 sec
Reputation Power: 962
You would have your document root, which on a default IIS is c:\inetpub\wwwroot.

Inside that is where your name might be an issue.

Say you have a site called "devshed", and inside you have a folder called "includes".

-devshed
index.php
--includes

in 'index.php', to include a file from include your code would be

include (./includes/filename.php)

the "." would be the current directory, and then slash for subdirectories.

2 dots, ".." takes you up one level. One dot represents the current directory, and the 2nd is the directory above it.
__________________

Raid1 in XP Pro

My open source projects:
------------------------
Blobber - Add images as blobs to SQL Server
------------------------

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > Converting from Unix/Apache to IIS


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 6 hosted by Hostway
Stay green...Green IT