php-windows Digest 30 Jul 2007 14:04:06 -0000 Issue 3297
Topics (messages 28281 through 28287):
Re: Error reporting
28281 by: Stut
28282 by: Bruce Cowin
28286 by: Gustav Wiberg
28287 by: Stut
PHP 4/5 Differences.
28283 by: Stephen
28284 by: Niel Archer
Re: How to configure PHP support for MySQL on Windows?
28285 by: Mark Abrams
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
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:
<html>
<title><head></head></title>
<body>
<?php
$a = 5;
$b = 0;
$c = $a / $b;
echo $c;
?>
</body>
</html>
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/
--- End Message ---
--- Begin Message ---
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 <[EMAIL PROTECTED]> 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:
> <html>
> <title><head></head></title>
> <body>
> <?php
>
> $a = 5;
> $b = 0;
> $c = $a / $b;
> echo $c;
> ?>
> </body>
> </html>
>
> 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/
--- End Message ---
--- Begin Message ---
Hi!
I don't know if that if this would have any effect, but it might. The html is
not written with correct standard.
<html>
<title><head></head></title>
<body>
Should be
<html>
<head><title>test</title></head>
<body>
Best regards
/Gustav Wiberg
-----Original Message-----
From: Bruce Cowin [mailto:[EMAIL PROTECTED]
Sent: Monday, July 30, 2007 1:02 AM
To: Stut
Cc: [EMAIL PROTECTED]
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 <[EMAIL PROTECTED]> 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:
> <html>
> <title><head></head></title>
> <body>
> <?php
>
> $a = 5;
> $b = 0;
> $c = $a / $b;
> echo $c;
> ?>
> </body>
> </html>
>
> 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
--- End Message ---
--- Begin Message ---
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 <[EMAIL PROTECTED]> 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:
<html>
<title><head></head></title>
<body>
<?php
$a = 5;
$b = 0;
$c = $a / $b;
echo $c;
?>
</body>
</html>
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
--- End Message ---
--- Begin Message ---
I have a script that requires PHP 4. I am using the latest version of PHP 5.
I am having problems with that script. Would there be any major changes that
could stop me from running the script.
--- End Message ---
--- Begin Message ---
> I have a script that requires PHP 4. I am using the latest version of PHP 5.
> I am having problems with that script. Would there be any major changes that
> could stop me from running the script.
http://www.php.net/manual/en/migration5.incompatible.php
--
Niel Archer
--- End Message ---
--- Begin Message ---
http://apache2triad.net/
There is a windows version - its a simple install - just provide a password
and the package installs and configs - I'm running it on Server 2003 and Win
XP - no problems.
I did have a problem with a Vista install. Unsuccessful.
""Sean B. Durkin"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
>
> How does one configure PHP support for MySQL on Windows?
>
> My host operating system is Windows Server 2003.
> 1. I have installed Apache 2.2 via the msi installer
> (apache_2.2.4-win32-x86-no_ssl.msi).
> 2. I have installed MySQL 5.1 via the windows installer
> (mysql-5.1.20-bet-win32.zip).
> 3. I have installed PHP 5 via the msi installer
> (php-5.2.3-win32-installer.msi)
> 4. I have enabled the php_mysql.dll extension inside of php.ini
> 5. I have ensured that libmysql.dll in on the system path.
>
> I have done all of this correctly, but I still cannot open
> a database from php script! What am I doing wrong? Can any one
> please advise?
>
>
> Please help a PHP/MySQL newbie.
>
> Faithfully,
> Sean B. Durkin
> ([EMAIL PROTECTED]
--- End Message ---