On 12/23/2011 8:13 AM, Floyd Resler wrote:
I know this is a very basic question and I'm almost embarrassed to ask it,
but it's something I really struggle with. That is, getting the right
combination of error reporting options together to report the errors I want.
Right now, I get the
You may need to check the running php code, those values can be
changed during runtime.
2011/5/10 Mike Mackintosh mike.mackint...@angrystatic.com:
Anyone else notice PHP throwing Warning and Notices even when display errors
and error reporting disabled?
I compiled PHP with the following:
Try this for me in a page you wish to not display errors.
?php
error_reporting(0);
ini_set('display_errors', 0);
?
What you are doing with this function is over riding the php.ini file and
turning off the errors on that page.
Place the code at the beginning of php before any includes.
If this
Unfortunately setting that within the PHP file directly still results in errors
and notices being displayed. I'm at a loss.
Sent from my iPhone
On May 10, 2011, at 5:40, ad...@buskirkgraphics.com wrote:
Try this for me in a page you wish to not display errors.
?php
error_reporting(0);
E_STRICT only shows one type of error. If you want everything than you
need to set E_ALL | E_STRICT
http://usphp.com/manual/en/errorfunc.constants.php#errorfunc.constants.errorlevels.e-strict
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Naz wrote:
I am
On Tue, July 25, 2006 10:32 am, James Nunnerley wrote:
We've created a file manager which allows users to access their web
space on
a server. It's working brilliantly, except that it would seem there
are
some caching issues, either by the system cache or the web server
cache that
are
You could try prefixing the unlink function call with an @:
if (file_exists($fn)) {
@unlink($fn);
}
The @ should suppress any errors.
jon
James Nunnerley wrote:
We've created a file manager which allows users to access their web space on
a server. It's working brilliantly, except that it
Bob Hartung wrote:
Jasper
If if make a file containing only
?php
phpinfo() ;
?
I get what I expected.
take a good look at where php is reading its ini file from
- it may not be where you expect
If I make a file containing
?php
phpinfo() ;
// Now a simple class and a call to
On Sun, 2005-10-23 at 17:31 -0400, Bob Hartung wrote:
Hi all,
Slowly I'm progressing.
Now how to turn error reporting on for a test apache server.
I have made the following changes to /etc/php.ini:
error_reporting = E_ALL
display_errors = On
error_log =
Jasper
If if make a file containing only
?php
phpinfo() ;
?
I get what I expected.
If I make a file containing
?php
phpinfo() ;
// Now a simple class and a call to the class
class Simple()
{
void __construct()
{
echo In the constructor ;
On Sun, 2005-10-23 at 21:31 -0400, Bob Hartung wrote:
Jasper
If if make a file containing only
?php
phpinfo() ;
?
I get what I expected.
If I make a file containing
?php
phpinfo() ;
// Now a simple class and a call to the class
class Simple()
Your error
Bob Hartung wrote:
Jasper
If if make a file containing only
?php
phpinfo() ;
?
I get what I expected.
If I make a file containing
?php
phpinfo() ;
// Now a simple class and a call to the class
class Simple()
{
void __construct()
{
echo In the
Jasper Derek
phpinfo() says:
configuration file path /etc/php.ini
PHP Core
DirectiveLocal Value Master Value
display_errorsOff Off
error_logno value no value
log errorson
On Sun, 2005-10-23 at 23:01 -0400, Bob Hartung wrote:
Jasper Derek
phpinfo() says:
configuration file path /etc/php.ini
PHP Core
DirectiveLocal Value Master Value
display_errorsOff Off
error_logno
It wasn't what I was looking for but I enable it:
include_path = .:/php/includes
This was commented out. After uncommenting it all works as I expected
except that my syntax in the class was wrong. Now I can at least start
to learn.
Thanks Jasper and Derek - you gave me a shove in the
I ave a strange problem with my error reporting!
I have set php.ini to: error_reporting = E_ALL but I don't see any
errors.
(After I was happy things were working on my Apache Test Server, I
uploaded
to my web host and discovered errors.)
Make sure that display_errors is on and that you
:53 PM
Subject: Re: [PHP] Error Reporting help
Chris Edwards wrote:
but do I need to do something to
get PHP to actually work off of these setting once they have been
changed,
Restart your web server.
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php
Thanks for all you replies, most of what you have suggested, I had already
tried, in vain, before joining the list.
I retried most of the combinations and still cannot get it to report syntax
errors. If I have errors, from say undefined variables, the error handler
catches those just fine.
On Monday 19 January 2004 22:34, Chris Edwards wrote:
I retried most of the combinations and still cannot get it to report syntax
errors. If I have errors, from say undefined variables, the error handler
catches those just fine.
Again:
But if display_errors (in php.ini) is disabled then
Here's a snippet from my PHI_INI
; - Show all errors
;
error_reporting = E_ALL
;error_reporting = E_ALL ~E_NOTICE ~E_WARNING ~E_CORE_WARNING
~E_USER_WARNING ~E_USER_NOTICE ~E_COMPILE_WARNING
display_errors = On
The commented out error_reporting was the original setting and
Chris Edwards wrote:
but do I need to do something to
get PHP to actually work off of these setting once they have been changed,
Restart your web server.
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals
On Tuesday 20 January 2004 03:44, Chris Edwards wrote:
Here's a snippet from my PHI_INI
; - Show all errors
;
error_reporting = E_ALL
;error_reporting = E_ALL ~E_NOTICE ~E_WARNING ~E_CORE_WARNING
~E_USER_WARNING ~E_USER_NOTICE ~E_COMPILE_WARNING
display_errors = On
With those
Chris Edwards wrote:
[cut]
For example if I code
echo This is a syntax error because of the double quote start and the
single quote end ';
I just get a blank screen.
I have 14 pages of PHP settings printed out, so for any kind person that can
help, I can respond with their
Chris Edwards wrote:
My hosting company recently upgraded to PHP 4.3.0. Since doing this I no
longer get syntax type errors, from my typo's inside my PHP scripts. These
use to come up in my browser when that page was requested and the script
run.
You probably need to have them turn on
Tried that, thanks, no joy.
It's almost like it parses it before it tries to execute any lines and if a
syntax error occurs, it doesn't execute any of the script.
The prior version would run up until the syntax error and then give you the
line if error, which usually meant the syntax error was
On Monday 19 January 2004 07:30, Chris Edwards wrote:
It's almost like it parses it before it tries to execute any lines and if a
syntax error occurs, it doesn't execute any of the script.
That's right.
The prior version would run up until the syntax error and then give you the
line if
Heh yes umm i know this. But how i could i catch this before is spits out
to an ugly error page so i can send to a custom error page.
Why would anyone but you ever see a parse error? It's the sort of thing
you fix before setting up custom error handling. :)
Richard Baskett wrote:
If I use:
ini_set(error_reporting, 0);
ini_set(display_errors, 0);
It still shows the errors.. if I use the error_reporting function.. it still
shows the errors, no matter what I do.. it still shows the errors!
What am I missing? I have it set in the php,ini to show
on 10/16/03 16:51, John W. Holmes at [EMAIL PROTECTED] wrote:
Richard Baskett wrote:
If I use:
ini_set(error_reporting, 0);
ini_set(display_errors, 0);
It still shows the errors.. if I use the error_reporting function.. it still
shows the errors, no matter what I do.. it still shows the
on 10/16/03 16:51, John W. Holmes at [EMAIL PROTECTED] wrote:
Richard Baskett wrote:
If I use:
ini_set(error_reporting, 0);
ini_set(display_errors, 0);
It still shows the errors.. if I use the error_reporting function.. it still
shows the errors, no matter what I do.. it still shows the
on the topic of error reporting, am i able to catch fatal/parse errors yet ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[EMAIL PROTECTED] wrote:
on the topic of error reporting, am i able to catch fatal/parse errors yet ?
How could a PHP script catch a Parse Error? The script hasn't started
because there is, ummm, a Parse Error! :)
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals www.phparch.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Heh yes umm i know this. But how i could i
This is hardly perfect since it shows all errors, but it works for me:
ini_set( 'display_errors', 1 );
ini_set( 'log_errors', 1 );
ini_set( 'error_reporting', -1 );
Anthony wrote:
I have error reporting turned off in my php.ini file on my production
server. I have an
-Original Message-
From: Anthony [mailto:[EMAIL PROTECTED]
Sent: 25 June 2003 12:36
I have error reporting turned off in my php.ini file on my production
server. I have an app I'm writing that I need to run on the
same server (no
one can see it though). Anyway. I want to turn
Thanks. That did the trick. According to a post from Mike Ford, it was
ini_set( 'display_errors', 1 ); that was messing me up. I have
display_error turrned off in php.ini too, so even though my reporting was
on, nothing was sent to the browser. Thanks for the help guys :)
- Anthony
Robert
Use the predefined constant:
__LINE__
Regards,
Michael Egan
-Original Message-
From: Bas Jobsen [mailto:[EMAIL PROTECTED]
Sent: 16 June 2003 12:50
To: PHP General
Subject: [PHP] error reporting linenumber and filename[Scanned]
Hi,
Running the code below, shows an errror in line 2 as
[mailto:[EMAIL PROTECTED]
Sent: 16 June 2003 13:14
To: Michael Egan
Subject: Re: [PHP] error reporting linenumber and filename[Scanned]
Dear Michael,
Thanks for your respons, maybe i don't inderstand your solution but:
1function line()
2{
3 echo __line__;
4}
5line();
will print 3
-Original Message-
From: Bas Jobsen [mailto:[EMAIL PROTECTED]
Sent: 16 June 2003 14:39
I'm not sure that there is a way beyond this to show the
line within the
function but I don't see that this would be necessary - at
least not for
resolving errors.
i'm building a class
Not possible with current php
Bas Jobsen wrote:
Hi,
Running the code below, shows an errror in line 2 as expected.
How do i get the linenumber of the function call? 3 here.
?
function test($x){if($x!='a')trigger_error('error: call test with argument 1
equals a',E_USER_ERROR);}
test('b');
?
start your file with :
error_reporting(E_ALL);
Op woensdag 14 augustus 2002 20:09, schreef Georgie Casey:
rite,
without access to the php.ini file, how can i get php to print all errors
on my web server. it runs linux
--
Regards,
Georgie Casey
[EMAIL PROTECTED]
On Monday 10 June 2002 09:42, Scott 'INtense!' Reismanis wrote:
Hey all,
I recently installed Apache2, PHP4.2 on my win2k box as a module. It
works fine however say a script has a syntax error all that happens is a
blank screen is displayed. No errors are shown and thus it is very hard
to
42 matches
Mail list logo