Re: [PHP] PHP Manual problems

2010-02-09 Thread Lester Caine
James McLean wrote: On Wed, Feb 10, 2010 at 2:26 PM, 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 behind-t

Re: [PHP] Re: poll: howto do informative error handling without the fatalities

2010-02-09 Thread Rene Veerman
On Wed, Feb 10, 2010 at 3:04 AM, Paul M Foster 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 made things probab

Re: [PHP] Owner or other; permissions for webpage users

2010-02-09 Thread James McLean
On Wed, Feb 10, 2010 at 2:51 PM, 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 anyone else, opens

Re: [PHP] PHP Manual problems

2010-02-09 Thread James McLean
On Wed, Feb 10, 2010 at 2:26 PM, 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 behind-the-scenes, in t

[PHP] Owner or other; permissions for webpage users

2010-02-09 Thread clancy_1
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 wo

Re: [PHP] PHP Manual problems

2010-02-09 Thread clancy_1
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 >> http://www.php.net/man

Re: [PHP] Re: poll: howto do informative error handling without the fatalities

2010-02-09 Thread Paul M Foster
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 acceptab

Re: [PHP] Re: poll: howto do informative error handling without the fatalities

2010-02-09 Thread Rene Veerman
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"

Re: [PHP] Re: poll: howto do informative error handling without the fatalities

2010-02-09 Thread clancy_1
On Tue, 9 Feb 2010 16:09:05 +, rquadl...@googlemail.com (Richard Quadling) wrote: >On 9 February 2010 14:20, 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

[PHP] RE: SOAP connect error

2010-02-09 Thread Eric Lommatsch
>-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 a

[PHP] Re: SOAP connect error

2010-02-09 Thread Shawn McKenzie
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 checke

[PHP] SOAP connect error

2010-02-09 Thread Eric Lommatsch
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 for

Re: [PHP] create archive file in memory with zipArchive class

2010-02-09 Thread Ryan Sun
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 wrote: > On 9 February 2010 15:42, Ryan Sun wrote: >> I want to generate credential zip file

Re: [PHP] Re: poll: howto do informative error handling without the fatalities

2010-02-09 Thread Richard
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 c

Re: [PHP] create archive file in memory with zipArchive class

2010-02-09 Thread Richard Quadling
On 9 February 2010 15:42, Ryan Sun 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 = '/tmp/xxx.zip'; > if

Re: [PHP] Re: poll: howto do informative error handling without the fatalities

2010-02-09 Thread Richard Quadling
On 9 February 2010 14:20, 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 w

[PHP] create archive file in memory with zipArchive class

2010-02-09 Thread Ryan Sun
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) {  

Re: [PHP] Re: poll: howto do informative error handling without the fatalities

2010-02-09 Thread Robert Cummings
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

Re: [PHP] Re: poll: howto do informative error handling without the fatalities

2010-02-09 Thread Ashley Sheridan
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 ema

Re: [PHP] Re: poll: howto do informative error handling without the fatalities

2010-02-09 Thread Robert Cummings
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". B

Re: [PHP] Re: poll: howto do informative error handling without the fatalities

2010-02-09 Thread Richard
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 (http://www.php.net/

Re: [PHP] Re: poll: howto do informative error handling without the fatalities

2010-02-09 Thread Richard Quadling
On 9 February 2010 12:55, 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, > may

Re: [PHP] Re: poll: howto do informative error handling without the fatalities

2010-02-09 Thread Richard
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.

Re: [PHP] Re: poll: howto do informative error handling without the fatalities

2010-02-09 Thread Richard Quadling
On 9 February 2010 11:48, Nathan Rixham 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 stoppe

[PHP] Re: poll: howto do informative error handling without the fatalities

2010-02-09 Thread Nathan Rixham
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 sto