Date: 06/26/00
- Next message: Mariusz Topczewski: "[PHP-WINDOWS] Undefined function pg_connect() ???"
- Previous message: Zeev Suraski: "[PHP-WINDOWS] 4.0.1 Release Candidate packaged"
- In reply to: Maxwell Hung: "Re: [PHP-WINDOWS] Re: Help! Win98 - Apache - PHP3"
- Next in thread: Firman Sugiharto: "Re: [PHP-WINDOWS] Re: Help! Win98 - Apache - PHP3"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected>
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe <email protected> For additional commands, e-mail: php-windows-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Mariusz Topczewski: "[PHP-WINDOWS] Undefined function pg_connect() ???"
- Previous message: Zeev Suraski: "[PHP-WINDOWS] 4.0.1 Release Candidate packaged"
- In reply to: Maxwell Hung: "Re: [PHP-WINDOWS] Re: Help! Win98 - Apache - PHP3"
- Next in thread: Firman Sugiharto: "Re: [PHP-WINDOWS] Re: Help! Win98 - Apache - PHP3"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

