note 76700 added to function.filter-var
| From: | John at osu1 dot php dot net | Date: | Thu, 26 Jul 2007 19:35:45 +0000 |
| Subject: | note 76700 added to function.filter-var | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-128949@lists.php.net to get a copy of this message | ||
I managed to get this to work with PHP 5.1.6 on CentOS 5 with minor difficulty.
1) Download the PECL filter package
2) Extract the tarball
3) phpize the directory
4) ./configure
5) make
6) filter-0.11.0/logical_filters.c:25:31: error: ext/pcre/php_pcre.h: No such file or directory
7) find / -name php_pcre.h
8) Make sure php-devel is installed
9) Edit filter-0.11.0/logical_filters.c and replace "ext/pcre/php_pcre.h" with the
absolute path of php_pcre.h
10) make
11) make install
12) add "extension=filter.so" to php.ini
13) Restart Apache
----
Server IP: 209.41.74.194
Probable Submitter: 64.222.73.250
----
Manual Page -- http://www.php.net/manual/en/function.filter-var.php
Edit -- https://master.php.net/note/edit/76700
Del: integrated -- https://master.php.net/note/delete/76700/integrated
Del: useless -- https://master.php.net/note/delete/76700/useless
Del: bad code -- https://master.php.net/note/delete/76700/bad+code
Del: spam -- https://master.php.net/note/delete/76700/spam
Del: non-english -- https://master.php.net/note/delete/76700/non-english
Del: in docs -- https://master.php.net/note/delete/76700/in+docs
Del: other reasons-- https://master.php.net/note/delete/76700
Reject -- https://master.php.net/note/reject/76700
Search -- https://master.php.net/manage/user-notes.php