Fatle Error: FILTER_VALIDATE_EMAIL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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";
 }

 ?> 

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


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux