Rev 464 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
#!/usr/bin/php<?php#指派命名空間namespace qbpwcf;#匯入套件include("/usr/lib/qbpwcf/allInOne.php");#涵式說明:#依據提供查詢IP服務的網站取得伺服器對外的IP.#回傳的結果:#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.#$result["function"],當前執行的函數名稱.#$result["error"],錯誤訊息陣列.#$result["content"],伺服端對外的IP.#必填參數:#$conf["fileArgu"],字串,php變數__FILE__的內容,亦即該檔案在檔案系統的絕對路徑$conf["fileArgu"]=__FILE__;$getServerRealIP=csInformation::getServerRealIP($conf);unset($conf);#如果運行失敗if($getServerRealIP["status"]==="false"){#印出內容var_dump($getServerRealIP);#停止運行exit;}#if end#印出 IPecho $getServerRealIP["content"].PHP_EOL;?>