|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
||||
|
||||
|
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 ------------------------ |
![]() |
| Viewing: Dev Shed Forums > System Administration > IIS > Converting from Unix/Apache to IIS |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|