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
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, wrote:
> Try this for me in a page you wish to not display errors.
>
> error_reporting(0);
> ini_set('display_errors', 0);
Try this for me in a page you wish to not display errors.
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 works errors are turned on or your disabling function is m
You may need to check the running php code, those values can be
changed during runtime.
2011/5/10 Mike Mackintosh :
> Anyone else notice PHP throwing Warning and Notices even when display errors
> and error reporting disabled?
>
> I compiled PHP with the following:
>
> './configure' '--prefix=/
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
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
'void' is not a php keyword. that would give a parse error
{
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
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_log
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
Bob Hartung wrote:
Jasper
If if make a file containing only
I get what I expected.
If I make a file containing
I get NO output or errors in the browser window. If I select "view
source" it returns:
Eh? Anyone with any other ideas
Tnx
Bob Hartung
Jasper Bryant-Greene wrot
On Sun, 2005-10-23 at 21:31 -0400, Bob Hartung wrote:
> Jasper
>If if make a file containing only
> phpinfo() ;
>?>
>I get what I expected.
>
>If I make a file containing
>
> phpinfo() ;
>
> // Now a simple class and a call to the class
> class Simple()
Your erro
Jasper
If if make a file containing only
I get what I expected.
If I make a file containing
I get NO output or errors in the browser window. If I select "view
source" it returns:
Eh? Anyone with any other ideas
Tnx
Bob Hartung
Jasper Bryant-Greene wrote:
http://www.php.ne
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_l
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 restart
>
Cc: <>
Sent: Monday, January 19, 2004 2: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.
>
>
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 =
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 – www.phparch.
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
"dis
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 t
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.
Questi
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 e
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
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 display_error
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 wit
>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. :)
-
> ---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
[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/
ph
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
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..
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..
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 err
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 C
> -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 t
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
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');
?>
Best
> -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 buil
which produced the error.
>
> 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.
>
> HTH,
>
> Michael Egan
>
> -Original Message-
>
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
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
>
42 matches
Mail list logo