why can't you just use plan simple HTML to do it??? rather than make a
larger hassle for your self ie
strong howdy /strong ???
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,
/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
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Strong typing
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 an INT,
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
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 )
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 an
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 file full of
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,
PROTECTED]
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 out an error message and dies
9 matches
Mail list logo