原创 遍歷數組

<?php$myarray = array ("My String", "Another String", "Hi, Mom!");for($i = 0; $i < count($myarray); $i++){    $myarray[

原创 php 真假

php 真假 <?php$string = "Hello, World!";$a = false;$b = false;$c = true;if($a) {        if(!$b && !$c) {        echo "Goo

原创 CentOS5.5 安裝gcc與g++步驟

1 打開VMWare界面,選擇菜單VM--Settings,在對話框中選擇CDROM,設置參數爲Use ISO image,選擇CentOS鏡像安裝文件;2 啓動虛擬機中的CentOS系統,用root登錄,在桌面上用鼠標右鍵新建一終端窗口

原创 Linux下./configure錯誤詳解

Linux下./configure錯誤詳解    sudo apt-get install 軟件包    這個是更新你指定的軟件包    sudo apt-get update                獲取更新列表  

原创 VIM中括號的自動補全與刪除

很多現代 IDE 都有自動補全配對括號的功能,比如輸入了左括號“(”,IDE 就自動在後面添加一個對應的右括號“)”,並且將光標移到括號中間。VIM 雖然沒有直接提供這個功能,但要實現其實非常簡單,只要在

原创 configure: error: zlib not installed

configure: error: zlib not installed解決方案是:1.進入zlib的源文件目錄,執行命令 make clean,清除zlib;2.重新配置 ./configure,後面不要接--prefix參數;3.編輯

原创 checking for C++ compiler default output file name... configure: error: C++

/lib/cpp fails sanity check的解決在某些軟件的時候,運行./configure 會報錯,錯誤提示爲:configure: error: C++ preprocessor “/lib/cpp” fails sani

原创 安裝過程freetype字體時出現make: Nothing to be done for `unix'.

make: Nothing to be done for `unix'.這個錯誤不影響。

原创 設置YUM源

設置YUM源# vi /etc/yum.repos.d/CentOS-Media.repo 編輯配置文件[c5-media] name=CentOS-$releasever - Mediabaseurl=file:///mnt/cdrom

原创 linux一些常用的基本命令

inux一些常用的基本命令uname   -a         查看內核版本               ls   -al         顯示所有文件的屬性 pwd                   顯

原创 一個命令可以攻擊所有的Linux系統

在微軟本月月經日(8.11)的同一天,國外黑客taviso和julien公開了可以攻擊所有新舊Linux系統的一個漏洞,包括但不限於 RedHat,CentOS,Suse,Debian,Ubuntu,Slackware,Mandriva,

原创 CentOS下lamp環境搭建問題集

先執行find / -name httpd查看是否存在rpm -qf httpd如果是安裝了包,顯示包名rpm -ql 包名 檢查是否已安裝,列出相關的包:# rpm -qa |grep httpd# rpm -qa |grep tomc

原创 安裝mysql,在./configure時出現錯誤:error: No curses/termcap library found的解決辦法

安裝mysql,在./configure時出現錯誤:error: No curses/termcap library found的解決辦法mysql版本:5.1.30 已經不記得這次是第幾次安裝mysql了,遇到這個問題倒是第一次。之前在

原创 SecureCRT右鍵粘貼的設置

1、習慣用putty的朋友,一般都習慣鼠標右鍵自動粘貼的功能,對於SecureCRT6.0.2 ,這個功能也已經是默認配置了。老版本的SecureCRT其實也有這個功能,只是不是默認設置,很多人不知道罷了。菜單:Options->Glob

原创 一個標籤卡

card.js===$(function(){$("#content").load("card.php?cid=1");var dt=null;$("#main #tit h3").mouseover(function(){var obj