Re: Re: Why PHP always reports X-Power?
| From: | Edward Wong | Date: | Wed, 30 Jun 1999 09:01:38 +0000 |
| Subject: | Re: Re: Why PHP always reports X-Power? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-777@lists.php.net to get a copy of this message | ||
Hi, David:
You are right, there exits some error in my php.ini, and browser will not reports errpr if I
comment all extension off in php.ini, if any one exist, browser reports error. but I want to know,
if in this way, does that means I can't use any other extension dlls loaded?
By the way, I downloaded PHP 4.0.1 from www.php.net, but I can't use it anyway.
If I extract the php.exe file to a folder and php4ts.dll to SYSTEM32 and call any php file from IE,
Windows 2000 always reports with a dialog saying: "Can't locate Program extrance
ts_resource_ex at the Dynamic Libary php4ts.dll ". So I can't follow the second way you
supplied by upgrading to Version 4.0.1 to correct this problem.
And the error dialog is attached, anyhow, it's in Chinesse not English. ;--)
Thanks,
Edward
-------------------------------------
# Edward Wong #
# #
# E-Mail:wyuanzheng@21cn.com #
# Phone: 86-21-63615261 * 207 #
# #
# iSpaceBank Group, Shanghai, China #
# #
-------------------------------------
----- Original Message -----
From: "David Robley" <huntsman@www.nisu.flinders.edu.au>
To: <wyuanzheng@21cn.com>
Cc: <teo@digiro.net>; <php-general@lists.php.net>
Sent: Friday, June 30, 2000 3:39 PM
Subject: Re: [PHP] Re: [PHP-DB] Re: [PHP] Why PHP always reports X-Power?
> On 30 Jun, To: wyuanzheng@21cn.com wrote:
> > On 30 Jun, Edward Wong wrote:
> >> Hi, Teodor:
> >>
> >> Thanks for response. I set "expose_php" off in php.ini, and
> >> "X-Power" disappears,
> >> but still left "Content-type: text/html "; In another words, it reports
> >> "X-Power by PHP4, Content-type: text/html " but now it reports "Content-type:
> >> text/html ",
> >>
> >> How to get rid of this message too?
> >>
> >> Thanks.
> >>
>
> >
> > If you are getting that message in your browser, you probably have an
> > error somewhere that is causing your headers to be send as content. This
> > was covered earlier today - have a quick look in the archive.
> >
> Never mind - here it is, courtesy of Zeev:
>
> In fact, it always emits the X-Powered-By line. Normally, however, this
> line becomes a part of the HTTP header and is transparent to the end user.
>
> You end up seeing it in your browser only if something goes wrong during
> the startup phase of PHP, usually due to a parse error of the php.ini
> file, or an invalid or missing extension referenced from it. This results
> in emitting an error message, which the Web server identifies as the HTTP
> header; The X-Powered-By line that follows is then considered as a part
> of the document body, which is why you end up seeing it in your browser.
>
> This problem occurs only under Windows, since Windows considers stderr
> output (through which the error message is reported) no different from
> stdout output.
>
> PHP 4.0.1 solves this problem by presenting a Windows message-box that
> describes the error, which you can hardly miss. Once you notice what the
> error is and fix it (again, most probably by fixing php.ini) - the problem
> will be gone.
>
>
> --
> David Robley | WEBMASTER & Mail List Admin
> RESEARCH CENTRE FOR INJURY STUDIES |
> http://www.nisu.flinders.edu.au/
> AusEinet |
> http://auseinet.flinders.edu.au/
> Flinders University, ADELAIDE, SOUTH AUSTRALIA
>