This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# PTX (公共運輸整合資訊流通服務平臺) 的 php 查詢範例 | |
# 網址: https://ptx.transportdata.tw/PTX | |
# 本程式不需要任何外加套件; 但關於 「如何保護私密資訊」, 請見 | |
# http://phpsec.org/projects/guide/3.html | |
# 的 "PHP Cookbook" 那一段 | |
# 如果省略上面步驟, 那就必須把下面的註解打開, | |
# 在程式碼裡填上 id 跟 key (限測試用; 請勿使用真的 id 跟 key!) |