Home >Backend Development >PHP Tutorial >How to install bcmath extension script in php? (with code)
phpHow to install bcmath extension script? The following article will introduce to you how to install the bcmath extension script in PHP. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.
#!/bin/bash bcmath_ini=/etc/php.d/40-bcmath.ini ## 安装bcmath扩展 cd /data/softs sudo tar zxvf php-5.6.30.tar.gz cd /data/softs/php-5.6.30/ext/bcmath/ sudo phpize sudo ./configure make &&make install ## 增加扩展配置 cat > $bcmath_ini <<EOF ; Enable bcmath extension module extension = bcmath.so EOF echo "bcmath安装完成......"
For more programming-related knowledge, please visit: Introduction to Programming! !
The above is the detailed content of How to install bcmath extension script in php? (with code). For more information, please follow other related articles on the PHP Chinese website!