Fatle Error: FILTER_VALIDATE_EMAIL

From: Date: Fri, 08 Jun 2007 14:43:51 +0000
Subject: Fatle Error: FILTER_VALIDATE_EMAIL
Groups: php.windows 
Request: Send a blank email to php-windows+get-28047@lists.php.net to get a copy of this message
OS: XP Pro PHP Version 5.1.2 I trying to use PHP filters (http://www.w3schools.com/php/php_filter.asp) which are supposted to come installed as part of the PHP core. On three servers running v5.1.2 I recieve: Fatal error: Call to undefined function: filter_var() in ... Is there something in the php.ini that needs to be enabled? TIA Mark <?php $email = "someone@exa mple.com";if(!filter_var($email, FILTER_VALIDATE_EMAIL)) { echo "E-mail is not valid"; } else { echo "E-mail is valid"; } ?>

« previous php.windows (#28047) next »