install PARADOX extension for PHP
I have an ApacheFriends XAMPP running on my windows machine and i am trying to access some Paradox database files directly f开发者_Python百科rom PHP.
I see that there is an extension for this but how can i install it for my windows system?
- copy the extension's .dll to
path\to\xampp\php\ext\
- and a line similar to
extension=php_paradox.dll
inpath\to\xampp\php\php.ini
, where php_paradox.dll is the name of your extension's .dll file - configure your extension's parameters in
path\to\xampp\php\php.ini
, if any, per your extension's intructions - restart Apache
If you have pecl installed, pecl install paradox
might fetch it on to your system. If not you must step though the ugly steps of extension compiling:
- download php source code
- copy the extension's source in
path/php-src/ext/
dir ./configure --prefix=/where/to/install/php --enable-debug --enable-maintainer-zts --enable-cgi --enable-cli --with-mysql=/path/to/mysql --with-PARADOX=shared,PATH/TO/DIR
- make, make install and you'll find the .dll in
install/path/ext/
dir
Mike, I believe that that XAMPP install includes Paradox support by default. Simply use px_get_record() et. al. and you should be good.
精彩评论