473,320 Members | 1,900 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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 1181

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

Similar topics

1
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
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...
1
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...
2
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.