Error reporting
am 29.07.2007 23:44:44 von Bruce Cowin
I originally sent this to the general list with no replies. As I'm it
concerns writing to the Windows event log, I thought I'd try my luck on
this list.
I'm running PHP 5.1 on IIS. My dev environment is all local on my
machine. My php.ini has the following error reporting settings:
error_reporting = E_ALL
display_errors = Off
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
error_log = syslog
To test, I've written a little script that divides by 0. When I run
the script from the command line, I get entries in my Event Log as
expected, but if I load the page into my browser (Firefox), no error
is
reported in the Event Log.
I've checked http://www.php.net/manual/en/ref.errorfunc.php but can't
find anything there. I figure I must be missing something pretty
obvious but not sure what it is. The script and logged error from the
command line are below. Thanks for any help.
script:
$a = 5;
$b = 0;
$c = $a / $b;
echo $c;
?>
logged error from command line:
The description for Event ID ( 2 ) in Source ( PHP-5.1.2 ) cannot be
found. The local computer may not have the necessary registry
information or message DLL files to display messages from a remote
computer. You may be able to use the /AUXSOURCE= flag to retrieve this
description; see Help and Support for details. The following
information
is part of the event: php[2132], PHP Warning: Division by zero in
C:\Inetpub\wwwroot\PHP\Testing\error.php on line 11.
Regards,
Bruce
Regards,
Bruce
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Error reporting
am 29.07.2007 23:52:06 von Stut
Bruce Cowin wrote:
> I originally sent this to the general list with no replies. As I'm it
> concerns writing to the Windows event log, I thought I'd try my luck on
> this list.
>
> I'm running PHP 5.1 on IIS. My dev environment is all local on my
> machine. My php.ini has the following error reporting settings:
>
> error_reporting = E_ALL
> display_errors = Off
> display_startup_errors = Off
> log_errors = On
> log_errors_max_len = 1024
> ignore_repeated_errors = Off
> ignore_repeated_source = Off
> report_memleaks = On
> track_errors = Off
> error_log = syslog
>
> To test, I've written a little script that divides by 0. When I run
> the script from the command line, I get entries in my Event Log as
> expected, but if I load the page into my browser (Firefox), no error
> is
> reported in the Event Log.
>
> I've checked http://www.php.net/manual/en/ref.errorfunc.php but can't
> find anything there. I figure I must be missing something pretty
> obvious but not sure what it is. The script and logged error from the
> command line are below. Thanks for any help.
>
> script:
>
>
>
>
>
> $a = 5;
> $b = 0;
> $c = $a / $b;
> echo $c;
> ?>
>
>
>
> logged error from command line:
> The description for Event ID ( 2 ) in Source ( PHP-5.1.2 ) cannot be
> found. The local computer may not have the necessary registry
> information or message DLL files to display messages from a remote
> computer. You may be able to use the /AUXSOURCE= flag to retrieve this
> description; see Help and Support for details. The following
> information
> is part of the event: php[2132], PHP Warning: Division by zero in
> C:\Inetpub\wwwroot\PHP\Testing\error.php on line 11.
Three possible reasons I can think of...
1) How are you "load[ing] the page into [your] browser"? If you are
using File->Open to open the PHP script that's never going to work
because Firefox doesn't know how to execute PHP
2) CLI is using a different php.ini than the web server - check this
with a phpinfo page (http://php.net/phpinfo
3) Permissions are preventing the web server process from writing to the
event log
-Stut
--
http://stut.net/
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Error reporting
am 30.07.2007 01:01:38 von Bruce Cowin
Thanks for the quick response. I load the page by going to the URL, not
by doing a file/open. I checked the phpinfo page and there is only one
php.ini mentioned there. I think your 3rd scenario is the most likely
so I'll look into that.
Thanks again.
Regards,
Bruce
>>> Stut 30/07/2007 9:52 a.m. >>>
Bruce Cowin wrote:
> I originally sent this to the general list with no replies. As I'm
it
> concerns writing to the Windows event log, I thought I'd try my luck
on
> this list.
>
> I'm running PHP 5.1 on IIS. My dev environment is all local on my
> machine. My php.ini has the following error reporting settings:
>
> error_reporting = E_ALL
> display_errors = Off
> display_startup_errors = Off
> log_errors = On
> log_errors_max_len = 1024
> ignore_repeated_errors = Off
> ignore_repeated_source = Off
> report_memleaks = On
> track_errors = Off
> error_log = syslog
>
> To test, I've written a little script that divides by 0. When I run
> the script from the command line, I get entries in my Event Log as
> expected, but if I load the page into my browser (Firefox), no error
> is
> reported in the Event Log.
>
> I've checked http://www.php.net/manual/en/ref.errorfunc.php but
can't
> find anything there. I figure I must be missing something pretty
> obvious but not sure what it is. The script and logged error from
the
> command line are below. Thanks for any help.
>
> script:
>
>
>
>
>
> $a = 5;
> $b = 0;
> $c = $a / $b;
> echo $c;
> ?>
>
>
>
> logged error from command line:
> The description for Event ID ( 2 ) in Source ( PHP-5.1.2 ) cannot be
> found. The local computer may not have the necessary registry
> information or message DLL files to display messages from a remote
> computer. You may be able to use the /AUXSOURCE= flag to retrieve
this
> description; see Help and Support for details. The following
> information
> is part of the event: php[2132], PHP Warning: Division by zero in
> C:\Inetpub\wwwroot\PHP\Testing\error.php on line 11.
Three possible reasons I can think of...
1) How are you "load[ing] the page into [your] browser"? If you are
using File->Open to open the PHP script that's never going to work
because Firefox doesn't know how to execute PHP
2) CLI is using a different php.ini than the web server - check this
with a phpinfo page (http://php.net/phpinfo
3) Permissions are preventing the web server process from writing to
the
event log
-Stut
--
http://stut.net/
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Error reporting
am 30.07.2007 08:14:00 von Gustav Wiberg
Hi!
I don't know if that if this would have any effect, but it might. The html =
is not written with correct standard.
Should be
test
Best regards
/Gustav Wiberg
=20
-----Original Message-----
From: Bruce Cowin [mailto:bdc@topenergy.co.nz]=20
Sent: Monday, July 30, 2007 1:02 AM
To: Stut
Cc: php-windows@lists.php.net
Subject: Re: [PHP-WIN] Error reporting
Thanks for the quick response. I load the page by going to the URL, not
by doing a file/open. I checked the phpinfo page and there is only one
php.ini mentioned there. I think your 3rd scenario is the most likely
so I'll look into that.
Thanks again.
Regards,
Bruce
>>> Stut 30/07/2007 9:52 a.m. >>>
Bruce Cowin wrote:
> I originally sent this to the general list with no replies. As I'm
it
> concerns writing to the Windows event log, I thought I'd try my luck
on
> this list.
>=20
> I'm running PHP 5.1 on IIS. My dev environment is all local on my
> machine. My php.ini has the following error reporting settings:
>=20
> error_reporting =3D E_ALL
> display_errors =3D Off
> display_startup_errors =3D Off
> log_errors =3D On
> log_errors_max_len =3D 1024
> ignore_repeated_errors =3D Off
> ignore_repeated_source =3D Off
> report_memleaks =3D On
> track_errors =3D Off
> error_log =3D syslog
>=20
> To test, I've written a little script that divides by 0. When I run
> the script from the command line, I get entries in my Event Log as
> expected, but if I load the page into my browser (Firefox), no error
> is
> reported in the Event Log. =20
>=20
> I've checked http://www.php.net/manual/en/ref.errorfunc.php but
can't
> find anything there. I figure I must be missing something pretty
> obvious but not sure what it is. The script and logged error from
the
> command line are below. Thanks for any help.
>=20
> script:
>
>
>
>
>=20
> =09$a =3D 5;
> =09$b =3D 0;
> =09$c =3D $a / $b;
> =09echo $c;
> ?>
>
>
>=20
> logged error from command line:
> The description for Event ID ( 2 ) in Source ( PHP-5.1.2 ) cannot be
> found. The local computer may not have the necessary registry
> information or message DLL files to display messages from a remote
> computer. You may be able to use the /AUXSOURCE=3D flag to retrieve
this
> description; see Help and Support for details. The following
> information
> is part of the event: php[2132], PHP Warning: Division by zero in
> C:\Inetpub\wwwroot\PHP\Testing\error.php on line 11.
Three possible reasons I can think of...
1) How are you "load[ing] the page into [your] browser"? If you are=20
using File->Open to open the PHP script that's never going to work=20
because Firefox doesn't know how to execute PHP
2) CLI is using a different php.ini than the web server - check this=20
with a phpinfo page (http://php.net/phpinfo
3) Permissions are preventing the web server process from writing to
the=20
event log
-Stut
--=20
http://stut.net/
--=20
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
No virus found in this outgoing message.
Checked by AVG Free Edition.=20
Version: 7.5.476 / Virus Database: 269.10.25/926 - Release Date: 2007-07-29=
23:14
=20
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Error reporting
am 30.07.2007 16:03:54 von Stut
Bruce Cowin wrote:
> Thanks for the quick response. I load the page by going to the URL, not
> by doing a file/open. I checked the phpinfo page and there is only one
> php.ini mentioned there. I think your 3rd scenario is the most likely
> so I'll look into that.
You need to check phpinfo from both a URL and on the CLI. If they're
different then that's probably what your problem is. The output from
reflects the current environment only.
-Stut
--
http://stut.net/
>>>> Stut 30/07/2007 9:52 a.m. >>>
> Bruce Cowin wrote:
>> I originally sent this to the general list with no replies. As I'm
> it
>> concerns writing to the Windows event log, I thought I'd try my luck
> on
>> this list.
>>
>> I'm running PHP 5.1 on IIS. My dev environment is all local on my
>> machine. My php.ini has the following error reporting settings:
>>
>> error_reporting = E_ALL
>> display_errors = Off
>> display_startup_errors = Off
>> log_errors = On
>> log_errors_max_len = 1024
>> ignore_repeated_errors = Off
>> ignore_repeated_source = Off
>> report_memleaks = On
>> track_errors = Off
>> error_log = syslog
>>
>> To test, I've written a little script that divides by 0. When I run
>> the script from the command line, I get entries in my Event Log as
>> expected, but if I load the page into my browser (Firefox), no error
>> is
>> reported in the Event Log.
>>
>> I've checked http://www.php.net/manual/en/ref.errorfunc.php but
> can't
>> find anything there. I figure I must be missing something pretty
>> obvious but not sure what it is. The script and logged error from
> the
>> command line are below. Thanks for any help.
>>
>> script:
>>
>>
>>
>>
>>
>> $a = 5;
>> $b = 0;
>> $c = $a / $b;
>> echo $c;
>> ?>
>>
>>
>>
>> logged error from command line:
>> The description for Event ID ( 2 ) in Source ( PHP-5.1.2 ) cannot be
>> found. The local computer may not have the necessary registry
>> information or message DLL files to display messages from a remote
>> computer. You may be able to use the /AUXSOURCE= flag to retrieve
> this
>> description; see Help and Support for details. The following
>> information
>> is part of the event: php[2132], PHP Warning: Division by zero in
>> C:\Inetpub\wwwroot\PHP\Testing\error.php on line 11.
>
> Three possible reasons I can think of...
>
> 1) How are you "load[ing] the page into [your] browser"? If you are
> using File->Open to open the PHP script that's never going to work
> because Firefox doesn't know how to execute PHP
>
> 2) CLI is using a different php.ini than the web server - check this
> with a phpinfo page (http://php.net/phpinfo
>
> 3) Permissions are preventing the web server process from writing to
> the
> event log
>
> -Stut
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Error reporting
am 01.08.2007 00:55:23 von Bruce Cowin
Ha ha....well....that's slightly embarrassing! But turns out it's not
the issue after all. It must be the permissions issue, but
unfortunately I haven't had a chance to get back and test it.
Thanks for that.
Regards,
Bruce
>>> Gustav Wiberg 30/07/2007 6:14:00 p.m. >>>
Hi!
I don't know if that if this would have any effect, but it might. The
html is not written with correct standard.
Should be
test
Best regards
/Gustav Wiberg
-----Original Message-----
From: Bruce Cowin [mailto:bdc@topenergy.co.nz]
Sent: Monday, July 30, 2007 1:02 AM
To: Stut
Cc: php-windows@lists.php.net
Subject: Re: [PHP-WIN] Error reporting
Thanks for the quick response. I load the page by going to the URL,
not
by doing a file/open. I checked the phpinfo page and there is only
one
php.ini mentioned there. I think your 3rd scenario is the most likely
so I'll look into that.
Thanks again.
Regards,
Bruce
>>> Stut 30/07/2007 9:52 a.m. >>>
Bruce Cowin wrote:
> I originally sent this to the general list with no replies. As I'm
it
> concerns writing to the Windows event log, I thought I'd try my luck
on
> this list.
>
> I'm running PHP 5.1 on IIS. My dev environment is all local on my
> machine. My php.ini has the following error reporting settings:
>
> error_reporting = E_ALL
> display_errors = Off
> display_startup_errors = Off
> log_errors = On
> log_errors_max_len = 1024
> ignore_repeated_errors = Off
> ignore_repeated_source = Off
> report_memleaks = On
> track_errors = Off
> error_log = syslog
>
> To test, I've written a little script that divides by 0. When I run
> the script from the command line, I get entries in my Event Log as
> expected, but if I load the page into my browser (Firefox), no error
> is
> reported in the Event Log.
>
> I've checked http://www.php.net/manual/en/ref.errorfunc.php but
can't
> find anything there. I figure I must be missing something pretty
> obvious but not sure what it is. The script and logged error from
the
> command line are below. Thanks for any help.
>
> script:
>
>
>
>
>
> $a = 5;
> $b = 0;
> $c = $a / $b;
> echo $c;
> ?>
>
>
>
> logged error from command line:
> The description for Event ID ( 2 ) in Source ( PHP-5.1.2 ) cannot be
> found. The local computer may not have the necessary registry
> information or message DLL files to display messages from a remote
> computer. You may be able to use the /AUXSOURCE= flag to retrieve
this
> description; see Help and Support for details. The following
> information
> is part of the event: php[2132], PHP Warning: Division by zero in
> C:\Inetpub\wwwroot\PHP\Testing\error.php on line 11.
Three possible reasons I can think of...
1) How are you "load[ing] the page into [your] browser"? If you are
using File->Open to open the PHP script that's never going to work
because Firefox doesn't know how to execute PHP
2) CLI is using a different php.ini than the web server - check this
with a phpinfo page (http://php.net/phpinfo
3) Permissions are preventing the web server process from writing to
the
event log
-Stut
--
http://stut.net/
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.10.25/926 - Release Date:
2007-07-29 23:14
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Error reporting
am 01.08.2007 08:17:00 von Gustav Wiberg
Hi!
I really didn't thought that would be the issue, but I thought I had to men=
tion it anyway :-)
Best regards
/Gustav Wiberg
-----Original Message-----
From: Bruce Cowin [mailto:bdc@topenergy.co.nz]=20
Sent: Wednesday, August 01, 2007 12:55 AM
To: 'Stut'; Gustav Wiberg
Cc: 'php-windows@lists.php.net'
Subject: RE: [PHP-WIN] Error reporting
Ha ha....well....that's slightly embarrassing! But turns out it's not
the issue after all. It must be the permissions issue, but
unfortunately I haven't had a chance to get back and test it.
Thanks for that.
Regards,
Bruce
>>> Gustav Wiberg 30/07/2007 6:14:00 p.m. >>>
Hi!
I don't know if that if this would have any effect, but it might. The
html is not written with correct standard.
Should be
test
Best regards
/Gustav Wiberg
=20
-----Original Message-----
From: Bruce Cowin [mailto:bdc@topenergy.co.nz]=20
Sent: Monday, July 30, 2007 1:02 AM
To: Stut
Cc: php-windows@lists.php.net=20
Subject: Re: [PHP-WIN] Error reporting
Thanks for the quick response. I load the page by going to the URL,
not
by doing a file/open. I checked the phpinfo page and there is only
one
php.ini mentioned there. I think your 3rd scenario is the most likely
so I'll look into that.
Thanks again.
Regards,
Bruce
>>> Stut 30/07/2007 9:52 a.m. >>>
Bruce Cowin wrote:
> I originally sent this to the general list with no replies. As I'm
it
> concerns writing to the Windows event log, I thought I'd try my luck
on
> this list.
>=20
> I'm running PHP 5.1 on IIS. My dev environment is all local on my
> machine. My php.ini has the following error reporting settings:
>=20
> error_reporting =3D E_ALL
> display_errors =3D Off
> display_startup_errors =3D Off
> log_errors =3D On
> log_errors_max_len =3D 1024
> ignore_repeated_errors =3D Off
> ignore_repeated_source =3D Off
> report_memleaks =3D On
> track_errors =3D Off
> error_log =3D syslog
>=20
> To test, I've written a little script that divides by 0. When I run
> the script from the command line, I get entries in my Event Log as
> expected, but if I load the page into my browser (Firefox), no error
> is
> reported in the Event Log. =20
>=20
> I've checked http://www.php.net/manual/en/ref.errorfunc.php but
can't
> find anything there. I figure I must be missing something pretty
> obvious but not sure what it is. The script and logged error from
the
> command line are below. Thanks for any help.
>=20
> script:
>
>
>
>
>=20
> =09$a =3D 5;
> =09$b =3D 0;
> =09$c =3D $a / $b;
> =09echo $c;
> ?>
>
>
>=20
> logged error from command line:
> The description for Event ID ( 2 ) in Source ( PHP-5.1.2 ) cannot be
> found. The local computer may not have the necessary registry
> information or message DLL files to display messages from a remote
> computer. You may be able to use the /AUXSOURCE=3D flag to retrieve
this
> description; see Help and Support for details. The following
> information
> is part of the event: php[2132], PHP Warning: Division by zero in
> C:\Inetpub\wwwroot\PHP\Testing\error.php on line 11.
Three possible reasons I can think of...
1) How are you "load[ing] the page into [your] browser"? If you are=20
using File->Open to open the PHP script that's never going to work=20
because Firefox doesn't know how to execute PHP
2) CLI is using a different php.ini than the web server - check this=20
with a phpinfo page (http://php.net/phpinfo
3) Permissions are preventing the web server process from writing to
the=20
event log
-Stut
--=20
http://stut.net/
--=20
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php=20
No virus found in this outgoing message.
Checked by AVG Free Edition.=20
Version: 7.5.476 / Virus Database: 269.10.25/926 - Release Date:
2007-07-29 23:14
=20
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php=20
--=20
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
No virus found in this outgoing message.
Checked by AVG Free Edition.=20
Version: 7.5.476 / Virus Database: 269.11.0/927 - Release Date: 2007-07-30 =
17:02
=20
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php