php-general Digest 9 Feb 2010 21:05:38 - Issue 6582
Topics (messages 301897 through 301912):
Re: howto do informative error handling without the fatalities
301897 by: Rene Veerman
301898 by: Teus Benschop
301899 by: Nathan Rixham
301900 by: Richard Quadling
Rene Veerman wrote:
Hi,
I'm looking for a strategy to do informative error handling at all
levels of my code, yet keep these errors non-fatal as often as
possible.
error_log - for logging errors
throw Exception - for show stoppers
try/catch - for when you can handle a potential show stopper
On 9 February 2010 11:48, Nathan Rixham nrix...@gmail.com wrote:
Rene Veerman wrote:
Hi,
I'm looking for a strategy to do informative error handling at all
levels of my code, yet keep these errors non-fatal as often as
possible.
error_log - for logging errors
throw Exception - for show
Hi,
I have extended the standard exception class to send me an email
whenever an exception occurs.
I did that once. Once being the operative word... :-) Ended up with
tens of thousands of emails one morning. At first I thought... Wow,
maybe my popularity has grown somewhat. But it hadn't.
--
On 9 February 2010 12:55, Richard rich...@php.net wrote:
Hi,
I have extended the standard exception class to send me an email
whenever an exception occurs.
I did that once. Once being the operative word... :-) Ended up with
tens of thousands of emails one morning. At first I thought... Wow,
Hi,
But I bet you REALLY quickly fixed the problem!
I just took out the error handling. :-)
--
Richard Heyes
HTML5 canvas graphing: RGraph - http://www.rgraph.net (updated 7th February)
Lots of PHP and Javascript code - http://www.phpguru.org
--
PHP General Mailing List
Richard wrote:
Hi,
I have extended the standard exception class to send me an email
whenever an exception occurs.
I did that once. Once being the operative word... :-) Ended up with
tens of thousands of emails one morning. At first I thought... Wow,
maybe my popularity has grown somewhat.
On Tue, 2010-02-09 at 09:19 -0500, Robert Cummings wrote:
Richard wrote:
Hi,
I have extended the standard exception class to send me an email
whenever an exception occurs.
I did that once. Once being the operative word... :-) Ended up with
tens of thousands of emails one morning.
Ashley Sheridan wrote:
On Tue, 2010-02-09 at 09:19 -0500, Robert Cummings wrote:
Richard wrote:
Hi,
I have extended the standard exception class to send me an email
whenever an exception occurs.
I did that once. Once being the operative word... :-) Ended up with
tens of thousands of emails
I want to generate credential zip file for user on the fly with
zipArchive and render it for download, so I created following code
-
$zip = new ZipArchive();
$filename = '/tmp/xxx.zip';
if ($zip-open($filename, ZIPARCHIVE::CREATE)!==TRUE) {
On 9 February 2010 14:20, Ashley Sheridan a...@ashleysheridan.co.uk wrote:
On Tue, 2010-02-09 at 09:19 -0500, Robert Cummings wrote:
Richard wrote:
Hi,
I have extended the standard exception class to send me an email
whenever an exception occurs.
I did that once. Once being the
On 9 February 2010 15:42, Ryan Sun ryansu...@gmail.com wrote:
I want to generate credential zip file for user on the fly with
zipArchive and render it for download, so I created following code
-
$zip = new ZipArchive();
$filename =
Hi,
Real developers don't have errors in their code; they're undocumented
features ;)
Or alternatively, if you freelance - Forthcoming employment opportunities :-)
--
Richard Heyes
HTML5 canvas graphing: RGraph - http://www.rgraph.net (updated 7th February)
Lots of PHP and Javascript code -
thanks, Richard, maybe you are right, the actual file name is not my job
I changed it to 'php://temp' but its still the same, nothing has been changed...
On Tue, Feb 9, 2010 at 11:13 AM, Richard Quadling
rquadl...@googlemail.com wrote:
On 9 February 2010 15:42, Ryan Sun ryansu...@gmail.com
Hello,
I am working with the SOAP package of PHP and I am trying make a connection
from a hosted website to a server in our office.
I can get to the server perfectly fine from within our office, but I cannot
connect from the eternal site.
I have checked and I am certain that the firewall
Eric Lommatsch wrote:
Hello,
I am working with the SOAP package of PHP and I am trying make a connection
from a hosted website to a server in our office.
I can get to the server perfectly fine from within our office, but I cannot
connect from the eternal site.
I have checked and I
-Original Message-
From: Shawn McKenzie [mailto:nos...@mckenzies.net]
Sent: Tuesday, February 09, 2010 3:07 PM
To: Eric Lommatsch
Cc: php-general@lists.php.net
Subject: Re: SOAP connect error
Eric Lommatsch wrote:
Hello,
I am working with the SOAP package of PHP and I am trying make
On Tue, 9 Feb 2010 16:09:05 +, rquadl...@googlemail.com (Richard Quadling)
wrote:
On 9 February 2010 14:20, Ashley Sheridan a...@ashleysheridan.co.uk wrote:
On Tue, 2010-02-09 at 09:19 -0500, Robert Cummings wrote:
Richard wrote:
Hi,
I have extended the standard exception class to
Well, i've thought of a few ways to allow localized overriding of
values returned by functions in case of an error.
I have yet to figure out what the exact advantages are of this
code-standard, but the overhead seems acceptable and i recon this,
when done, will beat the trigger_error()-try-catch
On Tue, Feb 09, 2010 at 11:38:42PM +0100, Rene Veerman wrote:
Well, i've thought of a few ways to allow localized overriding of
values returned by functions in case of an error.
I have yet to figure out what the exact advantages are of this
code-standard, but the overhead seems acceptable
On Thu, 04 Feb 2010 02:39:03 +0100, joc...@iamjochem.com (Jochem Maas) wrote:
Op 2/4/10 1:32 AM, clanc...@cybec.com.au schreef:
Recently I have frequently found, especially in the morning (GMT 2200 -
0200), that I can
open a bookmark in the manual, for example
I'm basically familiar with the UNIX permissions - 'owner', 'group', or
'other', but I
have no real idea how these apply to webpage users under PHP. I know that if I
FTP to the
server I am the owner, and I think that if I, or anyone else, opens one of my
webpages I
am 'other'.
However what I
On Wed, Feb 10, 2010 at 2:26 PM, clanc...@cybec.com.au wrote:
On Thu, 04 Feb 2010 02:39:03 +0100, joc...@iamjochem.com (Jochem Maas) wrote:
as for using IE6 ... WTF ... you do realise this is essentially a web
developers mailing list right?
The interesting things in my websites go on
On Wed, Feb 10, 2010 at 2:51 PM, clanc...@cybec.com.au wrote:
I'm basically familiar with the UNIX permissions - 'owner', 'group', or
'other', but I
have no real idea how these apply to webpage users under PHP. I know that if
I FTP to the
server I am the owner, and I think that if I, or
On Wed, Feb 10, 2010 at 3:04 AM, Paul M Foster pa...@quillandmouse.com wrote:
$d = funcD($q);
// tests if necessary
$c = funcC($p);
// tests if necessary
$b = funcB($c);
// tests if necessary
$r = funcA($b, $d);
You're right.
I knew when i was posting my last reply yesterday that i had
James McLean wrote:
On Wed, Feb 10, 2010 at 2:26 PM, clanc...@cybec.com.au wrote:
On Thu, 04 Feb 2010 02:39:03 +0100, joc...@iamjochem.com (Jochem Maas) wrote:
as for using IE6 ... WTF ... you do realise this is essentially a web
developers mailing list right?
The interesting things in my
26 matches
Mail list logo