Menu

Tree [r1] /
 History

HTTPS access


File Date Author Commit
 autom4te.cache 2013-07-10 vasman [r1] Initial commit
 build 2013-07-10 vasman [r1] Initial commit
 include 2013-07-10 vasman [r1] Initial commit
 modules 2013-07-10 vasman [r1] Initial commit
 Makefile 2013-07-10 vasman [r1] Initial commit
 Makefile.fragments 2013-07-10 vasman [r1] Initial commit
 Makefile.global 2013-07-10 vasman [r1] Initial commit
 Makefile.objects 2013-07-10 vasman [r1] Initial commit
 README 2013-07-10 vasman [r1] Initial commit
 acinclude.m4 2013-07-10 vasman [r1] Initial commit
 aclocal.m4 2013-07-10 vasman [r1] Initial commit
 config.guess 2013-07-10 vasman [r1] Initial commit
 config.h 2013-07-10 vasman [r1] Initial commit
 config.h.in 2013-07-10 vasman [r1] Initial commit
 config.log 2013-07-10 vasman [r1] Initial commit
 config.m4 2013-07-10 vasman [r1] Initial commit
 config.nice 2013-07-10 vasman [r1] Initial commit
 config.status 2013-07-10 vasman [r1] Initial commit
 config.sub 2013-07-10 vasman [r1] Initial commit
 configure 2013-07-10 vasman [r1] Initial commit
 configure.in 2013-07-10 vasman [r1] Initial commit
 ifconfig.c 2013-07-10 vasman [r1] Initial commit
 ifconfig.h 2013-07-10 vasman [r1] Initial commit
 ifconfig.ini 2013-07-10 vasman [r1] Initial commit
 install-sh 2013-07-10 vasman [r1] Initial commit
 libtool 2013-07-10 vasman [r1] Initial commit
 ltmain.sh 2013-07-10 vasman [r1] Initial commit
 missing 2013-07-10 vasman [r1] Initial commit
 mkinstalldirs 2013-07-10 vasman [r1] Initial commit
 run-tests.php 2013-07-10 vasman [r1] Initial commit

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());'