
- Rexx 教程
- Rexx - 首頁
- Rexx - 概述
- Rexx - 環境
- Rexx - 安裝
- Rexx - 外掛安裝
- Rexx - 基本語法
- Rexx - 資料型別
- Rexx - 變數
- Rexx - 運算子
- Rexx - 陣列
- Rexx - 迴圈
- Rexx - 決策
- Rexx - 數字
- Rexx - 字串
- Rexx - 函式
- Rexx - 棧
- Rexx - 檔案I/O
- Rexx - 檔案函式
- Rexx - 子程式
- Rexx - 內建函式
- Rexx - 系統命令
- Rexx - XML
- Rexx - Regina
- Rexx - 解析
- Rexx - 訊號
- Rexx - 除錯
- Rexx - 錯誤處理
- Rexx - 面向物件
- Rexx - 可移植性
- Rexx - 擴充套件函式
- Rexx - 指令
- Rexx - 實現
- Rexx - Netrexx
- Rexx - Brexx
- Rexx - 資料庫
- 手持裝置與嵌入式
- Rexx - 效能
- Rexx - 最佳程式設計實踐
- Rexx - 圖形使用者介面
- Rexx - Reginald
- Rexx - Web程式設計
- Rexx 有用資源
- Rexx - 快速指南
- Rexx - 有用資源
- Rexx - 討論
Rexx - Web程式設計
Rexx 也可以與 Web 伺服器一起工作。最常見的是 Apache Web 伺服器。為了將 Rexx 與 Apache Web 伺服器一起使用,您需要首先從以下連結下載 Rexx 模組:https://sourceforge.net/projects/modrexx/?source=typ_redirect
完成後,請確保將 mod Rexx 模組新增到類路徑中。
需要將以下行新增到 Apache 配置檔案中並進行修改。
需要將以下行新增到相應的末尾:
- httpd.conf LoadModule 列表。
- LoadModule rexx_module modules/mod_rexx.dll
應將以下行新增到 http.conf 檔案的末尾。
AddType application/x-httpd-rexx-script .rex .rexx
AddType application/x-httpd-rexx-rsp .rsp
新增這些以支援 REXX 伺服器頁面
RexxRspCompiler “c:/Program Files/Apache Group/Apache2/bin/rspcomp.rex”
完成上述更改後,您需要關閉並重新啟動 Apache Web 伺服器。
以上行還允許您擁有基於 Rexx 的伺服器頁面,就像 Java 伺服器頁面一樣。您可以將 Rexx 程式碼直接新增到 html 頁面中。
下面顯示了一個示例:
<p>The current date and time is <?rexx /* Inserting the rexx statement */ say date() time() ?> </p>
執行基於 Rexx 的伺服器頁面時,將執行以下操作:
首先建立一個臨時檔案。
然後,Rexx 伺服器編譯器將檔案編譯成 Rexx 程式並將其放置在臨時檔案中。
下一步是實際執行 Rexx 程式。
最後,刪除臨時檔案。
廣告