php-general Digest 26 Aug 2006 11:50:01 -0000 Issue 4314

2006-08-26 Thread php-general-digest-help
php-general Digest 26 Aug 2006 11:50:01 - Issue 4314 Topics (messages 241124 through 241127): Re: Recommendations for PHP debuggers? 241124 by: Larry Garfield 241125 by: Colin Guthrie Re: functions classes 241126 by: Alex Turner Brain Death - [PHP] functions

Re: [PHP] Re: Recommendations for PHP debuggers?

2006-08-26 Thread Larry Garfield
On Tuesday 22 August 2006 03:33, Colin Guthrie wrote: Larry Garfield wrote: http://www.zend.com/phpide/ I just tried to install the modular version for my existing Eclipse install. It insists it won't install without feaure org.eclipse.emf (2.2.0). Since it provides no indication of

[PHP] Re: Recommendations for PHP debuggers?

2006-08-26 Thread Colin Guthrie
Larry Garfield wrote: On Tuesday 22 August 2006 03:33, Colin Guthrie wrote: Larry Garfield wrote: http://www.zend.com/phpide/ I just tried to install the modular version for my existing Eclipse install. It insists it won't install without feaure org.eclipse.emf (2.2.0). Since it provides no

Re: [PHP] functions classes

2006-08-26 Thread Alex Turner
Larry, I have hit similar global names space issues in the past and it is a pain in the behind! One remedial method that can get it stable enough to start to work on is to stick the whole messy lot into classes (NOT OBJECTS!) and then the global name space becomes the local namespace (ie

[PHP] Brain Death - [PHP] functions classes

2006-08-26 Thread Alex Turner
I don't know what I was on when I wrote the previous post! In php you cannot create static class variables in this way (doh) or at least I never have managed. So when faced the this problem I replace what in C++ would be a class variable with a class function comme ca: class MyClass {

[PHP] Re: How to deal with errors in forms

2006-08-26 Thread Rene Brehmer
Documented research indicate that on Fri, 25 Aug 2006 13:18:25 +0200, Ivo F.A.C. Fokkema wrote: You might also try to process the results from the form first, and then, if errors are found, display the form again and put the data in there yourself. No need to send the user back and forth.

Re: [PHP] Brain Death - [PHP] functions classes

2006-08-26 Thread Robert Cummings
On Sat, 2006-08-26 at 12:49 +0100, Alex Turner wrote: I don't know what I was on when I wrote the previous post! In php you cannot create static class variables in this way (doh) or at least I never have managed. So when faced the this problem I replace what in C++ would be a class

RE: [PHP] Brain Death - [PHP] functions classes

2006-08-26 Thread Robert Cummings
On Sat, 2006-08-26 at 16:51 +0100, Alex Turner wrote: Rob, I'd go along with the setting a var to null issue (in the cases I have worked so far on, there has not been a need to set variables to null). Maybe so, but if a variable ever happens to contain null and you're not aware of it, the

RE: [PHP] Brain Death - [PHP] functions classes

2006-08-26 Thread Alex Turner
Cool! That is a very good point - I'll remember to use '=== null' in future. Then at least my code will have enough coffee even if I don't! Thanks - AJ Alexander J Turner Ph.D. www.deployview.com www.nerds-central.blogspot.com www.project-network.com -Original Message- From: Robert

RE: [PHP] Brain Death - [PHP] functions classes

2006-08-26 Thread Alex Turner
Rob, I'd go along with the setting a var to null issue (in the cases I have worked so far on, there has not been a need to set variables to null). However, what is wrong with is_null()? From the php manual chm: (PHP 4 = 4.0.4, PHP 5) is_null -- Finds whether a variable is NULL Description

RE: [PHP] Brain Death - [PHP] functions classes

2006-08-26 Thread tedd
At 4:51 PM +0100 8/26/06, Alex Turner wrote: And to be very pedantic - as null does not have a type then actually 'x === null' should evaluate to absurdity, but PHP is more pragmatic than that ;-) That's a very good point. While one NULL variable in php can be compared to another NULL

RE: [PHP] Brain Death - [PHP] functions classes

2006-08-26 Thread Robert Cummings
On Sat, 2006-08-26 at 12:41 -0400, tedd wrote: At 4:51 PM +0100 8/26/06, Alex Turner wrote: And to be very pedantic - as null does not have a type then actually 'x === null' should evaluate to absurdity, but PHP is more pragmatic than that ;-) That's a very good point. While one NULL

RE: [PHP] Brain Death - [PHP] functions classes

2006-08-26 Thread tedd
At 2:30 PM -0400 8/26/06, Robert Cummings wrote: On Sat, 2006-08-26 at 12:41 -0400, tedd wrote: At 4:51 PM +0100 8/26/06, Alex Turner wrote: And to be very pedantic - as null does not have a type then actually 'x === null' should evaluate to absurdity, but PHP is more pragmatic than

RE: [PHP] Brain Death - [PHP] functions classes

2006-08-26 Thread Robert Cummings
On Sat, 2006-08-26 at 14:23 -0400, tedd wrote: At 2:30 PM -0400 8/26/06, Robert Cummings wrote: On Sat, 2006-08-26 at 12:41 -0400, tedd wrote: At 4:51 PM +0100 8/26/06, Alex Turner wrote: And to be very pedantic - as null does not have a type then actually 'x === null' should evaluate

RE: [PHP] Brain Death - [PHP] functions classes

2006-08-26 Thread Alex Turner
Right or wrong - C does not actually have NULL :-) NULL in C is simply mapped to zero. It is useful in logic to sometimes use mapping of logical sentence letters to numbers and use mathematics to perform proof, but that is a special case. In languages like C, there is no special method of

RE: [PHP] Brain Death - [PHP] functions classes

2006-08-26 Thread Robert Cummings
On Sat, 2006-08-26 at 15:38 -0400, tedd wrote: At 3:04 PM -0400 8/26/06, Robert Cummings wrote: On Sat, 2006-08-26 at 14:23 -0400, tedd wrote: Besides, what Alex Turner said about NULL is correct -- it's absurd to have NULL evaluate to anything. Just because one language allows

Re: [PHP] Re: Recommendations for PHP debuggers?

2006-08-26 Thread Larry Garfield
On Saturday 26 August 2006 06:29, Colin Guthrie wrote: So unless someone has a better idea, I'm back to Kate and a terminal window. :-) That's the setup I always seem to revert to too!! Can't help but love Kate, if only it had some sort of code completion I'd be a happy camper... Col.

RE: [PHP] Brain Death - [PHP] functions classes

2006-08-26 Thread tedd
At 3:04 PM -0400 8/26/06, Robert Cummings wrote: On Sat, 2006-08-26 at 14:23 -0400, tedd wrote: Besides, what Alex Turner said about NULL is correct -- it's absurd to have NULL evaluate to anything. Just because one language allows absurdity doesn't mean you have to practice it. One