Read Me
DEPENDENCIES:
on freebsd it's possible to add the dependencies compiling
and installing the php port.
under the php directory in /usr/ports/lang/php5:
sudo make install
TO BUILD:
NOTE: with PHP 5.4 the API has changed!
To compile under PHP 5.4 open the file ifconfig.h and uncomment the line:
//#define PHP54
to enable the changes.
phpize
./configure --enable-ifconfig
make
TO INSTALL:
cp modules/*.so `php-config --extension-dir`
cp ifconfig.ini /etc/php5/conf.d/ (in debian)
cp ifconfig.ini /usr/local/"your php conf directory" (on freebsd, via ports)
you can also try:
make install
but you'll probably need to adjust your php.ini even in this case.
TO TEST:
php -r 'echo ifconfig();'
php -r 'var_dump(ifconfig());'