Fatle Error: FILTER_VALIDATE_EMAIL
Fatle Error: FILTER_VALIDATE_EMAIL
am 08.06.2007 16:43:51 von Mark Abrams
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
$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
Re: Fatle Error: FILTER_VALIDATE_EMAIL
am 08.06.2007 19:46:30 von Niel Archer
Hi,
filter is not part of PHP core, it is a PECL extension. For more info
read the documentation at http://uk.php.net/manual/en/ref.filter.php
Niel
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
PECL extension Install Questions . - Re: [PHP-WIN] Fatle Error: FILTER_VALIDATE_EMAIL
am 11.06.2007 15:31:15 von Mark Abrams
Thank you Neil,
I am running PHP5 under ApacheTriad. The Windows PHP install does not work
on my XP Pro PC - Recieved errors "The procedure entry point_encode_pointer
could not locate the dynamic link library MSVCR80.DLL. (I checked the file
and path settings - these are correct)
So I downloaded ApacheTriad - it installed OK and the PHP works in the
Apache server only. I stall have the entry point error when using a CMD
input.
My questions are: Can I copy the PECL library into my C:\apache2triad
directory and set a flag in the PHP.INI? If so where do I find a windows
download of PECL or PEAR?
Thank you.
Mark
"Niel Archer" wrote in message
news:20070608184510.EEAE.SPAMFREE@blueyonder.co.uk...
> Hi,
>
> filter is not part of PHP core, it is a PECL extension. For more info
> read the documentation at http://uk.php.net/manual/en/ref.filter.php
>
> Niel
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: PECL extension Install Questions . - Re: [PHP-WIN] Fatle Error: FILTER_VALIDATE_EMAIL
am 11.06.2007 21:58:10 von Niel Archer
Hi Mark
> The Windows PHP install does not work on my XP Pro PC -
> Recieved errors "The procedure entry point_encode_pointer
> could not locate the dynamic link library MSVCR80.DLL
I don't use the windows installer, so can't offer advice on it.
However, MSVCR80.DLL, is Microsoft's Visual C++ Runtime and I believe is
available somewhere on the MS web-site.
The short answer is Yes, you can add them to your installation. PEAR
libraries are PHP scripts, so usable on all platforms. PECL extensions
are available as windows DLLs
Both PEAR/PECL use the same method to download, which is part of the
standard PHP installation. Look at the respective web-sites for
documentation on PEAR/PECL and their packages.
http://pear.php.net
http://pecl.php.net
Niel
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: PECL extension Install Questions . - Re: [PHP-WIN] Fatle Error: FILTER_VALIDATE_EMAIL
am 11.06.2007 23:58:26 von Mark Abrams
Thank you Neil,
MSVCR80.DLL is on my PC in C:\windows\system32
my path points to the file ????
Also. I also read the doc on PECL and am lost as to how I would install this
under the ApacheTraid system that I use for development.
"Niel Archer" wrote in message
news:20070611194856.3BF7.SPAMFREE@blueyonder.co.uk...
> Hi Mark
>
>> The Windows PHP install does not work on my XP Pro PC -
>> Recieved errors "The procedure entry point_encode_pointer
>> could not locate the dynamic link library MSVCR80.DLL
>
> I don't use the windows installer, so can't offer advice on it.
> However, MSVCR80.DLL, is Microsoft's Visual C++ Runtime and I believe is
> available somewhere on the MS web-site.
>
> The short answer is Yes, you can add them to your installation. PEAR
> libraries are PHP scripts, so usable on all platforms. PECL extensions
> are available as windows DLLs
>
> Both PEAR/PECL use the same method to download, which is part of the
> standard PHP installation. Look at the respective web-sites for
> documentation on PEAR/PECL and their packages.
>
> http://pear.php.net
>
> http://pecl.php.net
>
>
> Niel
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: PECL extension Install Questions . - Re: [PHP-WIN]Fatle Error: FILTER_VALIDATE_EMAIL
am 12.06.2007 03:20:35 von Elizabeth Smith
Mark Abrams wrote:
> Thank you Neil,
> MSVCR80.DLL is on my PC in C:\windows\system32
>
> my path points to the file ????
>
>
> Also. I also read the doc on PECL and am lost as to how I would install this
> under the ApacheTraid system that I use for development.
>
You're on windows - precompiled is the way to go.
Get extensions from http://pecl4win.php.net or the pecl extensions zip
on http://php.net/downloads (remember you'll need to match extensions to
your php version) - pick the extensions you want, they're named in
php_extensionname.dll format, drop them into your php extensions
directory (I have no clue where apachetriad puts them - search is your
friend) and enable them in your php.ini file (extension=php_filter.dll
or whatever the heck you want to use) - then restart apache
Windows dll search paths can be...interesting. Try putting a copy of
MSVCR80.DLL in the same directory as your php sapi (should be something
like php5apache2.dll or similiar) or if that doesn't work try in the
same location as your apache binary.
for pear try go-pear.org and follow the instructions
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php