Skip to content

Benjr.tw

  • Linux
    • Stress & Performance
    • Hardware Info
    • Hardware Monitor
    • Security
    • Desktop
    • PXE
    • Filesystem Hierarchy Standard
    • Linux 開機選項
    • Linux Package Manager
    • 備份 Backup
  • Virtualization
    • Container & Docker
    • CoreOS
  • NAS/SAN
  • Programming Language
    • Bash shell script
    • Perl
    • PHP
    • Python
  • DataBase
  • WordPress

Programming Language

PHP – CSV -> Table + Search Bar

2019-02-252019-03-05 adminPHP, RedHat / CentOS

要如何透過 PHP 來讀取 Linux 下 CSV (每筆資料用 “,” 做區分) 檔案並把它轉成為 HTML Table 而且可以透過 search bar 來篩選(搜尋)內容. 測試環境為 CentOS 7 虛擬機 (IP: http://192.168.95.205) […]

Read more

PHP – Read CSV File & cover to HTML Table

2019-02-202019-02-25 adminPHP, RedHat / CentOS

要如何透過 PHP 來讀取 Linux 下 CSV (每筆資料用 “,” 做區分) 檔案並把它轉成為 HTML Table. 測試環境為 CentOS 7 虛擬機 (IP: http://192.168.95.205) , Apache 安裝設定請參考 http://benj […]

Read more

PHP – read file

2019-02-182019-02-19 adminPHP, RedHat / CentOS

要如何透過 PHP 來讀取 Linux 下檔案. 測試環境為 CentOS 7 虛擬機 (IP: http://192.168.95.205) , Apache 安裝設定請參考 http://benjr.tw/323 , 如果使用 Nginx (Web server) 請參考 – htt […]

Read more

PHP + Linux command

2019-02-142019-02-14 adminLinux, PHP, RedHat / CentOS

要如何透過 PHP 來執行 Linux 下的指令或是寫好的 bash script . 測試環境為 CentOS 7 虛擬機 (IP: http://192.168.95.205) , Apache 安裝設定請參考 http://benjr.tw/323 , 如果使用 Nginx (Web serv […]

Read more

Bash shell script – function

2019-01-242019-01-24 adminBash shell script, Linux, RedHat / CentOS

測試環境為 CentOS7 x86_64 (虛擬機) 參考文章 – https://ryanstutorials.net/bash-scripting-tutorial/bash-functions.php Linux Bash shell script 使用函數 function 參考 […]

Read more

Linux – Perl 使用 Proxy

2018-06-062018-06-06 adminLinux, Perl, RedHat / CentOS

當 Perl 安裝模組透過 cpan 或是 cpanm 時須透過 公司 Proxy 時,這時候可以在 perl 的 shell 來進行設定. 設定 Proxy 進入 perl 的 shell 來進行設定,透過 o conf http_proxy 先觀察有無設定過 . 透過 o conf init / […]

Read more

Linux – Perl & Modules

2018-05-302018-06-06 adminLinux, Perl, RedHat / CentOS

安裝 Perl – Practical Extraction and Report Language , 測試環境為 CentOS 7 x64 (虛擬機) 前置作業 – 所需套件 Perl 在 CentOS 7 使用版本為 perl 5, version 16, subversion 3 […]

Read more

Linux – Python & pip

2018-05-292018-08-16 adminPython, RedHat / CentOS

安裝 Python 與 pip , 測試環境為 CentOS 6.8 x64 (虛擬機) 前置作業 – 所需套件 Python 透過 yum 就可以安裝 Python ,但版本是 2.6.6 . 需要使用較新本的 Python 3.x 需要自行編輯.目前官方網站 https://www. […]

Read more

PHP + Mysql

2018-01-022019-02-18 adminLinux, PHP, Ubuntu

要如何透過 PHP 來讀取 Mysql (MariaDB) 的資料. 測試環境為 Ubuntu 16.04 x86_64 + Apache2 虛擬機 (IP: 172.16.15.130) 請參考 http://benjr.tw/95861 , web server 為 Nginx + MariaD […]

Read more

Bash shell script 輸出 IP Address

2017-07-122017-07-13 adminBash shell script, Linux

透過 sed 與 awk 都可以把文件做過濾和轉換成新的輸出內容.不過 sed 適合用於一整行的資料處理,而 awk 則比較適合將一整行做多個 欄位 的資料處理.先來看看 sed 的範例. 只想把 ifconfig 網卡裝置 ens33 過濾剩下 IP Address 的輸出,這時候需要配合 gre […]

Read more

文章導覽

較舊的文章

近期文章

  • CentOS 8 – LVM (Logical Volume Manager)
  • SQL 語法 SELECT Duplicate Row (Column)
  • MariaDB – Master Slave Replication
  • SQL 語法 SELECT Last Row (Column)
  • PHPMyAdmin – 資料無法匯入

近期留言

  • 「passenger」在〈udev 裝置命名規則〉發佈留言
  • 「passenger」在〈udev 裝置命名規則〉發佈留言
  • 「Eric」在〈Linux – PXEBoot WinPE (windows ADK)〉發佈留言
  • 「admin」在〈Linux – Install via Serial Port Console〉發佈留言
  • 「Mush」在〈Linux – Install via Serial Port Console〉發佈留言

分類

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文
Powered by WordPress | Theme: Astrid by aThemes.