NYCPHP Meetup

NYPHP.org

[nycphp-talk] Filter extension problems

Jakob Buchgraber jakob.buchgraber at googlemail.com
Sat Jun 23 14:11:58 EDT 2007


Cliff Hirsch wrote:
> I am getting the following error message:
> 
> Call to undefined function: filter_var() in....
> 
> I’m using XAMPP V1.5.5, PHP V5.1.6. My server check says that the filter 
> extension is installed.
> 
> Any thoughts? Anyone using the filter extension with this version on 
> Xampp/PHP?
> 
> Cliff
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
> 
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
> 
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php

Just have a look at the manual:

filter_var

(PHP 5 >= 5.2.0, PECL filter:0.11.0)

So this function is only available since PHP 5.2.0 and you are using 
5.1.6 ... . I remember that I had a similar problem, because they 
renamed the function from filter_xxx to filter_var. However I can't 
remember the name of the old function.

Just type php -re filter on the command line to get the correct function 
name for 5.1.

cheers,
jay

-- 
Sun Certified Programmer for the Java 2 Platform, Standard Edition 5.0



More information about the talk mailing list