473,800 Members | 2,696 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ISAPI mode - functions not working


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 I have configured IIS to do this. PHP runs well in this
mode except for in one crucial area - no file system functions are now
working. Examples being;

realpath()
file_exists()
readfile()
readdir()
fopen()

and so on..

For example this code:

echo realpath('index .html');

which works as expected in CGI mode returns FALSE in ISAPI mode.

Similarly if I try to open an existing file with fopen() I get a 'file
does not exist' type error. The same happens if I use the absolute path
to the file.

Now I've been searching the groups and php.net and can find no
reference to this particular problem so I'm sure this is NOT a bug in
PHP but more likely some kind of configuration problem, possibly
something I need to enter in php.ini?

I can toggle IIS between CGI and ISAPI and all the file based functions
work perfectly in CGI mode and not at all in ISAPI. Both use the same
php.ini file.

If anyone can shed any light on this matter I would be most grateful.

Thanks

Nov 22 '05 #1
0 1204

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

Similar topics

1
1725
by: mark | r | last post by:
anyone know how to use this component, am i right in thinking that it will convert something like default.asp?pageid=100&cat=74 to default,100,74.html (or something similar) ? mark
0
1080
by: Sarah J | last post by:
Hi File system functions such as; file_exists(); realpath(); fopen(); etc. aren't working since we started using PHP in ISAPI mode (though fine in CGI using same php.ini). Has anyone else experienced this
1
1716
by: Stephanie Le Gall | last post by:
Hello, We are runing php in CGI mode with IIS and we have 2 differents problems 1 - A lots of PHP.EXE running and never stop. So the server go down after a few time. we can see that on a php bug report : http://bugs.php.net/bug.php?id=22292
2
1974
by: Sheila | last post by:
Hi, I have setup a Sharepoint 2003 server which has an ISAPi filter installed, now I want to develop a HTTPModule which needs to run before the ISAPI filter. So my question is, if a HTTPModule and an ISAPI filter are installed on the same web virtual directory, which one will process first? Thanks in advance.
0
9551
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
10507
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
10279
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
10036
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
9092
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...
0
6815
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5473
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5607
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3765
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.