Is ISAPI broken? : Weird stuff with PHP4 in Win 2000 / IIS5
| From: | Greg Brunet | Date: | Mon, 26 Jun 2000 18:33:51 +0000 |
| Subject: | Is ISAPI broken? : Weird stuff with PHP4 in Win 2000 / IIS5 | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-662@lists.php.net to get a copy of this message | ||
Hi:
I've been trying to check out some more substantial PHP code, and took a
look at the Building an E-Commerce Site articles at DevShed (e.g.
http://www.devshed.com/Server_Side/PHP/Commerce1/print.html)
Nothing much was working right for me at first (the pages came up blank in
the browser), so I started running them from the command line (e.g.
"\php4\php index.php | more" ) in order to see if anything was being
generated. An interesting thing happened then! I noticed that the PHP.EXE
was getting further into the code than the when called from the browser.
Someone mentioned a while back that the ISAPI port was flaky - but I've not
seen mention of this in the newsgroups. I am getting complaints like the
following in the web browser:
1) When index.php does an: include("application.php");
which in turn contains:
==========
/* define a generic object */
class object {};
==========
it causes a:
Fatal error: Cannot redeclare class object in application.php on line 19
2) If I just try to paste the application.php code into the index.php file,
I get varying errors - either the same message (with a different file name &
line number),
At this point I'm wondering: 1) what is causing this weird behavior - why
does the command line PHP.exe work, but the php4isapi.dll not work properly?
2) Why isn't this problem given more visibility - such as on the PHP web
site?
I've changed the Application configuration within the Internet Services
Manager (default web site Properties | Home Directory Tab | Applications
Settings Configuration button) for .PHP to point to the php.exe, which seems
to fix the problem for now. I also removed the ISAPI filter setting for
.PHP in case that made a difference. Any ideas about this weirdness?
-- Greg
Semper Software, Inc.
www.SemperSoft.com
GBrunet@SemperSoft.com