RE: [PHP] Strong typing?

2001-07-13 Thread scott [gts]
about variable typing, memory allocation/cleanup and all those other nitpicky low-level things that BDSM ... errr C programmers seem to love :-) > -Original Message- > From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 12, 2001 8:15 PM > To: Dr. Evil

Re: [PHP] Strong typing?

2001-07-13 Thread Adam
> why can't you just use plan simple HTML to do it??? rather than make a larger hassle for your self ie > > howdy ??? > > & yes that is valid HTML :) > > Peter why do i get the idea that's not what they meant... -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

RE: [PHP] Strong typing?

2001-07-12 Thread Peter Houchin - SunRentals Australia
CTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Strong typing? > U... you could write a fuction like > > function CheckInputAgainstRE( $val, $re ) > { > if ( ! ereg( $re, $val ) ) > { > ( ... some kind of code that writes

Re: [PHP] Strong typing?

2001-07-12 Thread Phil Driscoll
On Friday 13 July 2001 01:27, Dr. Evil wrote: > If you're doing financial stuff, or anything else that requires > bullet-proof security and reliability, strong typing is essential, I would have said that good programming was essential rather than strong typing. If you insist on strong typing,

Re: [PHP] Strong typing?

2001-07-12 Thread Dr. Evil
> U... you could write a fuction like > > function CheckInputAgainstRE( $val, $re ) > { > if ( ! ereg( $re, $val ) ) > { > ( ... some kind of code that writes out an error message and dies > ... ) > } > return $val; > } That's what I've done. I have a huge fil

Re: [PHP] Strong typing?

2001-07-12 Thread Rasmus Lerdorf
> PHP is a great language. It makes it fast and easy to create web > pages. However, one feature which is critical for doing rock-solid > stable websites is strong typing. The reason for this is that you're > dealing with untrusted user input. Strong typing helps because if you > are expecting

Re: [PHP] Strong typing?

2001-07-12 Thread Brian White
U... you could write a fuction like function CheckInputAgainstRE( $val, $re ) { if ( ! ereg( $re, $val ) ) { ( ... some kind of code that writes out an error message and dies ... ) } return $val; } and then a series of functions like function CheckInt( $val ) {

RE: [PHP] Strong typing?

2001-07-12 Thread Chadwick, Russell
http://www.php.net/manual/en/function.settype.php is this what you are looking for? -Original Message- From: Dr. Evil [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 4:55 PM To: [EMAIL PROTECTED] Subject: [PHP] Strong typing? PHP is a great language. It makes it fast and ea