Jump to content

Recommended Posts

The PECL Windows binaries are available here - http://www.php.net/downloads.php

 

Download the PECL zip archive that matches your version of php, un zip it, copy the .dll that you want to use into your php extensions folder (ext for php5), and add a line to your php.ini file to load the extension.

Link to comment
https://forums.phpfreaks.com/topic/81733-undefined-functions/#findComment-415118
Share on other sites

what would that line look like?

 

Just like the other extension lines in the php.ini file, but with a name specific to the filter extension dll.

 

And which .dll file would I need

 

I don't know as I have never used the filter functions, but if you look at the file names I am sure you probably can find the right one.

Link to comment
https://forums.phpfreaks.com/topic/81733-undefined-functions/#findComment-415161
Share on other sites

$page = filter_sanitize_int($_GET['page']);

(line 19 in matches.php)

I also tried using caps, but that doesn't work either.

When I type filter and press ctrl+space in phpDesigner, it gives filter_sanitize_number_int as an option.

 

I found a line in php.ini loading php_filter.dll and I uncommented it, but there's no php_filter.dll in my extensions folder. Nor in the one I downloaded.

 

And the error:

Fatal error: Call to undefined function filter_sanitize_number_int() in C:\xampp\htdocs\league\matches.php on line 19

Link to comment
https://forums.phpfreaks.com/topic/81733-undefined-functions/#findComment-415618
Share on other sites

As always, the php manual is where you should lookup how to use functions - http://www.php.net/manual/en/ref.filter.php

 

FILTER_SANITIZE_NUMBER_INT is a constant that you use in the filter functions, it is not a function name.

Link to comment
https://forums.phpfreaks.com/topic/81733-undefined-functions/#findComment-415620
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.