Re: [PHP] Re: test for illegal characters and consequences

2006-04-04 Thread Eduardo Raúl Galván Sánchez
You can compare each character against the "standard character set" by means of regular expressions. Angelo Zanetti escribió: Al wrote: Angelo Zanetti wrote: Hi guys. Ive developed a site and now I've come to the stage where I need to test each textfield on each form for illegal charact

Re: [PHP] Re: test for illegal characters and consequences

2006-04-04 Thread Angelo Zanetti
Al wrote: Angelo Zanetti wrote: Hi guys. Ive developed a site and now I've come to the stage where I need to test each textfield on each form for illegal characters that have been inputted. I would like to know from some of you how you go about it? Do you use a regular expression and te

Re: [PHP] Re: test security of code

2006-03-08 Thread gustav
> Gregory Machin wrote: >> Hi >> Is there an application that can pass source code and report potential >> security problem and or the live site ? >> Many thanks >> -- >> Gregory Machin >> [EMAIL PROTECTED] >> [EMAIL PROTECTED] >> www.linuxpro.co.za >> www.exponent.co.za >> Web Hosting Solutions >>

Re: [PHP] Re: test if $int is integer

2004-06-30 Thread John W. Holmes
Matthew Sims wrote: I recently purchased George Schlossnagle's Advanced PHP Programming and on page 85 in the Error Handling chapter, he made a reference about the is_int function. In the above function example he had: if (!preg_match('/^\d+$/',$n) || $n < 0) { In which he mentions: It might be

Re: [PHP] Re: test if $int is integer

2004-06-30 Thread Chris Shiflett
--- Matthew Sims <[EMAIL PROTECTED]> wrote: > I recently purchased George Schlossnagle's Advanced PHP Programming and > on page 85 in the Error Handling chapter, he made a reference about the > is_int function. > > In the above function example he had: > if (!preg_match('/^\d+$/',$n) || $n < 0) {.

Re: [PHP] Re: test if $int is integer

2004-06-29 Thread Lars Torben Wilson
Matthew Sims wrote: I recently purchased George Schlossnagle's Advanced PHP Programming and on page 85 in the Error Handling chapter, he made a reference about the is_int function. In the above function example he had: if (!preg_match('/^\d+$/',$n) || $n < 0) { In which he mentions: It might be

Re: [PHP] Re: test if $int is integer

2004-06-29 Thread Mark Leavy
Yeah, 4 will pass the is_int() test, '4' won't. I prefere just to use if(ctype_digit($foo)){ ... } On Tue, 29 Jun 2004 15:12:22 -0700 (PDT), Matthew Sims <[EMAIL PROTECTED]> wrote: > I recently purchased George Schlossnagle's Advanced PHP Programming and on > page 85 in the Error Handling chapter

Re: [PHP] Re: test if $int is integer

2004-06-29 Thread Matthew Sims
> Vlad Georgescu wrote: > >> how can test if var $int is integer ? > > In the manual: > >http://www.php.net/is_int > > Another one which might be helpful: > >http://www.php.net/is_numeric > > > Hope this helps, > > Torben > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscr

Re: [PHP] Re: test

2004-05-26 Thread Oliver Hankeln
Craig wrote: Yeah those damn email always come at same time. Well on my blocked list now. This is only helping the Symptom. Why not solve the Problem? The mails you got are auto-replies. Unfortunatley I didn't find a person responsible for this [EMAIL PROTECTED] but perhaps such a person is readin

Re: [PHP] Re: test

2004-05-26 Thread Craig
Yeah those damn email always come at same time. Well on my blocked list now. "Jordi Canals" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Sherri wrote: > > Woah! > > > > Signed up litterally 1 minute ago and I'm already getting spam. From > > "Advance Credit Suisse Bank" > > > Jus

Re: [PHP] Re: test

2004-05-25 Thread Daniel Clark
I think it's someone else on the list getting the email lists, and spaming. >>Signed up litterally 1 minute ago and I'm already getting spam. From >>"Advance Credit Suisse Bank" >> >>Great. Thanks php.net. >> >>Guess you can't even trust the well known sites not to slam you with spam. -- PHP Ge

Re: [PHP] Re: test

2004-05-25 Thread Brian Dunning
"Advance Credit Suisse Bank" Great. Thanks php.net. Guess you can't even trust the well known sites not to slam you with spam. Come on, that's not fair. Those emails are sent by some unscrupulous individual who subscribed to the list and set up a rule to reply those spams to everyone who posts t

Re: [PHP] Re: test

2004-05-25 Thread Jordi Canals
Sherri wrote: Woah! Signed up litterally 1 minute ago and I'm already getting spam. From "Advance Credit Suisse Bank" Just wait. There are some more waiting for you ;) You should receive the "Information Desk" and "Ingram Computer Services" mails yet. -- PHP General Mailing List (http://www.php.n

Re: [PHP] Re: Test for whole number.

2002-04-07 Thread Miguel Cruz
On Mon, 8 Apr 2002, Tom Rogers wrote: > At 09:16 AM 8/04/2002, Charlie Killian wrote: >> I'd like to condense the function below into one line. >> >> function isOneBitSet($n) >> { >>$x = log($n)/log(2); >>return ($x == intval($x)); >> } >> >> AND I don't want to do this: >> return (log($n)

Re: [PHP] Re: Test for whole number.

2002-04-07 Thread Tom Rogers
Hi Not sure if this is the best way to do it: function isOneBitSet($n) { return !ereg("\.",strval(log($n)/log(2))); } Tom At 09:16 AM 8/04/2002, Charlie Killian wrote: >That post was incomprehensible. Here it is revised: > >I'd like to condense the function below into one line. > >func

RE: [PHP] RE: test ... please ignore ...

2001-02-01 Thread PHPBeginner.com
en it , as says on the FrontPage in 10 days. On February 11-th.. Cheers, Maxim Maletsky -Original Message- From: Navid [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 01, 2001 6:02 PM To: 'PHPBeginner.com'; 'PHP' Subject: RE: [PHP] RE: test ... please ignore ... Th

RE: [PHP] RE: test ... please ignore ...

2001-02-01 Thread Navid
Thank you very much, I will look forward to this. This may be just what I was looking for, a complete beginner's tutorial for PHP. Congrats and good luck with the opening night. Sincerely, Navid -Original Message- From: PHPBeginner.com [mailto:[EMAIL PROTECTED]] Sent: Thursday, F