[PHP] GMP problem

2004-03-02 Thread csko
Hi!

I've some problems with installing the GMP module for PHP.
My system: Debian Linux 3.0 Woody
I've downloaded the source from php.net.
I cd-ed to its dir and typed ./configure --with-gmp
(i've recently installed GMP with apt-get install libgmp2)
I have an error:

checking for GNU gettext support... no
checking for GNU MP support... yes
configure: error: Unable to locate gmp.h
[EMAIL PROTECTED]:~/install/php$

csko

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: GMP problem

2004-03-02 Thread csko
Thanks for your fast answer, its working.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] ASCII

2004-03-05 Thread csko
Hi!
Is there a function to convert a ASCII char to decimal or binary?
Or a program?

csko

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] reg expression for ide-emails

2004-03-29 Thread csko
> If you're going to validate a [EMAIL PROTECTED] address, why even
> bother? Seriously. There are a 1000 different regular expressions for email
> addresses out there and each of them have flaws to some extent.
> 
> If your application is so important that it requires a valid email address,
> you should send them something to confirm it. Otherwise, just take whatever
> crap they give... if they don't want emails, so be it.
> 
> ---John Holmes...

Hi!

I think it's good to have a preg_match(), ereg(), or some other check.
I also check badwords in emails entered by a form:
if(!eregi("((root)|(admin)|(webmaster)|(postmaster)|(csko)|(r00t)|(r0ot)|(ro0t)|(kernel)|(system)|(sysadmin)|(csko)|(administrator)|(rendszergazda)|(operator))",$email)){
}

Why? Becasuse some people entered [EMAIL PROTECTED] as email :)

csko
[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php