Using input filtering - php_filter.dll
Posted by: ejennings_98 (---.static.uniserve.ca)
Date: February 16, 2007 11:07PM

I am trying to use the filter.dll so that I can filter all input. This is recommended to prevent cross site scripting.

I have added it in my php.ini file, and it shows up when looking at phpinfo(), but I get an error when trying to call the functions.

I get the following error
<b>Fatal error: Call to undefined function filter_input() in C:\wamp\www\MyWeb\xssTest.php on line 46</b>

I am using WAMP 1.6.5
I have the default php.ini file, I added the following in the extension section:
<b>extension=php_filter.dll</b>
has anyone worked with the input filter.

Regards, Eric


Options: ReplyQuote
Re: Using input filtering - php_filter.dll
Posted by: ejennings_98 (---.static.uniserve.ca)
Date: February 17, 2007 12:10AM

Ok, I figured it out. php_filter works, but the function calls do not. I was testing cross site scripting, and it filters everything out by default.

Regards, Eric.

Options: ReplyQuote


Sorry, only registered users may post in this forum.