Get the App
SLTechnology News&Howtos  ›  Development  › 

How to install the php extension script for linux

Shulou Source: shulou.com Published: 2022-06-03 18:43:15 10月03日 Update

This article will explain in detail how to install the php extension script for linux. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

Test environment: ubuntu 12.04 php 5.3.x

#! / bin/bash#Program:# Accomplish to expand the specified function only one key#History:# 2013-11-15 pankai first releasetest!-f. / & echo "The shell script of 'ext_skel' doesn't exist in current directory.\ n" & & exit 0 [!-d "skeleton"] & & echo "The directory of' skeleton' doesn't exist in current directory.\ n" & exit 0#include ". / ext_skel" read-p " Please input the extension name: "ext_name#echo-e" hello $ext_name "# The blank space is necessary#Error:# like: if [!-d" $ext_name "] Thenif [!-d "$ext_name"]; then. / ext_skel-- extname=$ext_namefifile= ". / $ext_name/config.m4" copy= ". / $ext_name/config" if [!-f ". / $ext_name/configs"] Then # Create a new file and clear it if it exists: > "$copy" cat "$file" | while read line # for line in $(cat. / zend/config.m4) do string=$ (echo $line | grep 'PHP_ARG_ENABLE') if ["$string"! = "] Then echo $line | cut-c5-> > $copy read line fi echo $line > > $copy done mv "$file". / $ext_name/configs "mv" $copy ". / $ext_name/config.m4" ficd $ext_namephpize./configure on "linux how to install the php extension script" is here. I hope the above can be helpful to you. So that you can learn more knowledge, if you think the article is good, please share it for more people to see.

Tags: Articles scripts more good practical content articles environment knowledge reference help related testing Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei MariaDB Shulou Information Shulou Tech Info OPPO Reno