473,788 Members | 2,735 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IIS ISAPI PHP problem with pages in the website root (defaulting to C:\WINNT\SYSTEM 32)

Hi guys,

I've come across a rather strange, and very anoying problem.

On /some/ PHP sites that we're developing on 2 different servers, files that
are in the root of the website are unable to load files using relative paths
(they need to be given the full
"C:\Inetpub\www root\website\ww w\folder\file.t xt" rather then
"folder/file.txt"). However includes with relative paths still seem to work.

When getcwd() is called it returns "C:\WINNT\syste m32" and trying to read
the current dir prints out the contents of system32.

If pages are even one folder up from the root (eg in folder/page.php) then
getcwd reports the correct folder and relative paths work again.

Also in CGI mode, and on a few other ISAPI php websites defined in IIS, the
paths from the root works fine.
The PHP version we're using is 4.3.1 and 4.3.2.
Is there some reason why some sites have this root problem, while others
don't? I've looked through the different site's config, and there's no
difference I can find

Thanks

Andrew
Jul 16 '05 #1
0 2624

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1508
by: Jerry Sievers | last post by:
Just curious; I'm getting redirected to pages on some "Hurricane Electric" website. This is happening when I try to read the print friendly doc pages which I have used and bookmarked for a long time. http://us2.php.net/manual/en/print/index.php Happened again when I just tried to download the documentation bundle
10
1613
by: Shawn | last post by:
Hi, For a few years, I have been developing each of my clients websites using a seperate web site (unique IP) to solve problems with relative URL's between my local dev station and the production server. Recently, I have needed to collaborate with other developers using Source Safe. But, in order to get source safe working properly, you really need to be working in virtual directories of the default web site.
4
1900
by: Serg | last post by:
How do I install ISAPI filter in IIS? I need ISAPI filter to process folder paths such as http://MyUrl/folder1/folder2/folder3 There is no "ISAPI filters" tab in my IIS. Thanks!
0
1204
by: Sarah J | last post by:
Hi We have a high traffic PHP built website which, for reasons beyond my control, is hosted on a twin processor (Zeus) Windows 2003/IIS6 server. PHP 4.4.1 came preinstalled as a CGI but because of the load we were getting random 'CGI Header' errors. Microsoft have found the problem to be with the processors entering 'race mode' (because of the high number of CGI processes being created), and have advised us to run PHP in ISAPI mode. So...
2
2737
by: Roel | last post by:
Hi All, I have a treeview in my master page where I use custom pictures for. I have defined a new theme in the App_Themes folder, and all my pages use this theme. In my TreeView.Skin file i have following entries: CollapseImageUrl="themeimages/icon_bg_lightgrey.jpg" NoExpandImageUrl="themeimages/bullet_subitem.jpg" ExpandImageUrl="themeimages/icon_bg_lightgrey.jpg"
1
1809
by: Gregory Gadow | last post by:
Currently, my company's website uses a custom ISAPI filter to map a web user to a network user, and give the user access to our website. This has worked great for several years. We now want to add .NET functionality to our website, and I am looking for a .NET solution to replace the ISAPI authentication. We have Visual Studio 2005, SQL Server 2005 and IIS 6. With the current setup, user id, password and the network user id are stored in...
0
895
by: perplexed | last post by:
I have a website that will contain several web apps at some point. The website is actually an ASP.NET 2.0 web app. I've compiled a DLL and have a bin folder on the web server. There is only one DLL at the moment named mysite.dll. I will put future web apps (?) in subfolders of this site but may later on move them into their own root folder (once I'm on a dedicated server). I'd like recommendations for the best way to go about setting...
0
4791
by: Yannick | last post by:
Hi, I'm Julien from France, We have recently install a new Web Server for my company The server is composed : - Linux RedHat RHEL4 U4 - Httpd-2.0.52-27.ent - Oracle Database 10.2.0.1
1
1398
by: MMAS | last post by:
I've seen a similar post about this problem but still cannot find an automated solution. Below is the code I'm using to create a website (for IIS 6.0) via C#. once the site is created, it will not serve aspx pages. If I: 1. go to IIS Manager 2. view the properties for the site in question 3. go to the tab 4. click next to the Application Name textbox in the Application Settings area.
0
9498
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10373
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10177
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9969
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8995
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7519
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5538
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4074
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2897
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.