濮阳杆衣贸易有限公司

主頁 > 知識(shí)庫 > linux安裝php擴(kuò)展腳本分享

linux安裝php擴(kuò)展腳本分享

熱門標(biāo)簽:江蘇云電銷機(jī)器人公司 揭陽智能電話機(jī)器人推薦 打電話機(jī)器人接我是他的秘書 百度地圖標(biāo)注錯(cuò)了有責(zé)任嗎 地圖標(biāo)注員都是年輕人 如果做線上地圖標(biāo)注 華鋒e路航港口地圖標(biāo)注 河南信譽(yù)好的不封卡電話外呼系統(tǒng) 客服外呼系統(tǒng)怎么樣

測試環(huán)境:ubuntu 12.04 php 5.3.x

復(fù)制代碼 代碼如下:

#!/bin/bash
#Program:
# Accomplish to expand the specified function only one key
#History:
# 2013/11/15 pankai530911044@qq.com> first release
test ! -f ./ext_skel 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" ]; then
if [ ! -d "$ext_name" ]; then
 ./ext_skel --extname=$ext_name
fi
file="./$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
   echo $line | cut -c5- >> $copy
   read line
   echo $line | cut -c5- >> $copy
   read line
  fi
  echo $line >> $copy
 done
 mv "$file" "./$ext_name/configs"
 mv "$copy" "./$ext_name/config.m4"
fi
cd $ext_name
phpize
./configure

您可能感興趣的文章:
  • 如何使用Linux的Crontab定時(shí)執(zhí)行PHP腳本的方法
  • 在PHP中運(yùn)行Linux命令并啟動(dòng)SSH服務(wù)的例子
  • Linux下php5.4啟動(dòng)腳本

標(biāo)簽:淘寶邀評 馬鞍山 巴彥淖爾 婁底 許昌 邵陽 赤峰 金昌

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《linux安裝php擴(kuò)展腳本分享》,本文關(guān)鍵詞  linux,安裝,php,擴(kuò)展,腳本,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《linux安裝php擴(kuò)展腳本分享》相關(guān)的同類信息!
  • 本頁收集關(guān)于linux安裝php擴(kuò)展腳本分享的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    永嘉县| 安新县| 宜章县| 乌鲁木齐市| 黎川县| 扶余县| 乾安县| 亚东县| 银川市| 绥宁县| 海安县| 丽江市| 阳泉市| 义马市| 高陵县| 肃宁县| 宁武县| 明溪县| 雷州市| 晴隆县| 西乌珠穆沁旗| 邮箱| 武安市| 从化市| 三明市| 江源县| 静海县| 宝兴县| 胶南市| 新民市| 三穗县| 分宜县| 龙海市| 河西区| 卫辉市| 长武县| 清徐县| 龙游县| 汉寿县| 武宣县| 客服|