-
{PHP internal code} — CodeIgniter\Debug\Exceptions->shutdownHandler ()
Allowed memory size of 134217728 bytes exhausted (tried to allocate 2097184 bytes) search →
APPPATH/Controllers/Forecast.php at line 295
288 // $pageTitle = '登山一週24小時天氣預報';
289 $pageTitle = lang('Lang.mountain_week_forecast');
290
291 $url = "https://opendata.cwa.gov.tw/fileapi/v1/opendataapi/F-B0053-031";
292 $authorization = weatherAuthKey;
293 $format = "JSON";
294 $fullUrl = $url . "?Authorization=" . $authorization . "&format=" . $format;
295 $response = file_get_contents($fullUrl);
296 if ($response !== false) {
297 // 解析 JSON 回應
298 $forecastData = json_decode($response, true);
299
300 // 提取需要的資料
301 // 如果需要,這裡可以進行後續處理或輸出
302 } else {
{PHP internal code} — CodeIgniter\Debug\Exceptions->shutdownHandler ()
Key | Value |
---|---|
USER | www-data |
HOME | /var/www |
HTTP_CF_VISITOR | {"scheme":"https"} |
HTTP_CF_IPCOUNTRY | US |
HTTP_CF_CONNECTING_IP | 18.97.9.175 |
HTTP_CDN_LOOP | cloudflare; loops=1 |
HTTP_HOST | weather.wingzero.tw |
HTTP_X_FORWARDED_PROTO | https |
HTTP_ACCEPT_LANGUAGE | en-US,en;q=0.5 |
HTTP_CF_RAY | 92395126686e0578-NRT |
HTTP_IF_MODIFIED_SINCE | Tue, 03 Dec 2024 04:59:43 GMT |
HTTP_ACCEPT_ENCODING | gzip, br |
HTTP_ACCEPT | text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 |
HTTP_USER_AGENT | CCBot/2.0 (https://commoncrawl.org/faq/) |
HTTP_X_FORWARDED_FOR | 18.97.9.175 |
REDIRECT_STATUS | 200 |
SERVER_NAME | weather.wingzero.tw |
SERVER_PORT | 80 |
SERVER_ADDR | 139.162.99.239 |
REMOTE_USER | |
REMOTE_PORT | 38934 |
REMOTE_ADDR | 172.68.119.166 |
SERVER_SOFTWARE | nginx/1.18.0 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /srv/weather/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /zh-CN/forecast/mountain |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | |
SCRIPT_FILENAME | /srv/weather/public/index.php |
PATH_INFO | |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT |
1742516778.082 |
REQUEST_TIME |
1742516778 |
Key | Value |
---|---|
FCPATH | /srv/weather/public/ |
APPPATH | /srv/weather/app/ |
ROOTPATH | /srv/weather/ |
SYSTEMPATH | /srv/weather/system/ |
WRITEPATH | /srv/weather/writable/ |
TESTPATH | /srv/weather/tests/ |
APP_NAMESPACE | App |
COMPOSER_PATH | /srv/weather/vendor/autoload.php |
SECOND |
1 |
MINUTE |
60 |
HOUR |
3600 |
DAY |
86400 |
WEEK |
604800 |
MONTH |
2592000 |
YEAR |
31536000 |
DECADE |
315360000 |
EXIT_SUCCESS |
0 |
EXIT_ERROR |
1 |
EXIT_CONFIG |
3 |
EXIT_UNKNOWN_FILE |
4 |
EXIT_UNKNOWN_CLASS |
5 |
EXIT_UNKNOWN_METHOD |
6 |
EXIT_USER_INPUT |
7 |
EXIT_DATABASE |
8 |
EXIT__AUTO_MIN |
9 |
EXIT__AUTO_MAX |
125 |
EVENT_PRIORITY_LOW |
200 |
EVENT_PRIORITY_NORMAL |
100 |
EVENT_PRIORITY_HIGH |
10 |
siteNameEn | Weatherry |
siteNameTw | 天氣小幫手 |
siteName | Weatherry 天氣小幫手 |
siteUrl | https://weather.wingzero.tw/ |
metaImage | meta-img2.jpg |
metaIntro | |
weatherAuthKey | CWB-9FDCDE98-828B-4DC0-8354-271057AEE182 |
supported_languages |
Array ( [zh-TW] => 繁體中文 [zh-CN] => 簡体中文 [ja] => 日文 [en] => English ) |
taiwanCounties |
Array ( [0] => Array ( [stationId] => 466881 [locationName] => 新北市 ) [1] => Array ( [stationId] => 466920 [locationName] => 臺北市 ) [2] => Array ( [stationId] => 466940 [locationName] => 基隆市 ) [3] => Array ( [stationId] => 466990 [locationName] => 花蓮縣 ) [4] => Array ( [stationId] => 467050 [locationName] => 桃園市 ) [5] => Array ( [stationId] => 467080 [locationName] => 宜蘭縣 ) [6] => Array ( [stationId] => 467110 [locationName] => 金門縣 ) [7] => Array ( [stationId] => 467571 [locationName] => 新竹縣 ) [8] => Array ( [stationId] => CAD050 [locationName] => 新竹市 ) [9] => Array ( [stationId] => 467280 [locationName] => 苗栗縣 ) [10] => Array ( [stationId] => 467650 [locationName] => 南投縣 ) [11] => Array ( [stationId] => 467490 [locationName] => 臺中市 ) [12] => Array ( [stationId] => 467270 [locationName] => 彰化縣 ) [13] => Array ( [stationId] => A2K630 [locationName] => 雲林縣 ) [14] => Array ( [stationId] => 467480 [locationName] => 嘉義市 ) [15] => Array ( [stationId] => 72M700 [locationName] => 嘉義縣 ) [16] => Array ( [stationId] => 467410 [locationName] => 臺南市 ) [17] => Array ( [stationId] => 467441 [locationName] => 高雄市 ) [18] => Array ( [stationId] => 467590 [locationName] => 屏東縣 ) [19] => Array ( [stationId] => 467660 [locationName] => 臺東縣 ) [20] => Array ( [stationId] => 467350 [locationName] => 澎湖縣 ) [21] => Array ( [stationId] => 467990 [locationName] => 連江縣 ) ) |
ENVIRONMENT | production |
CI_DEBUG | |
KINT_DIR | /srv/weather/system/ThirdParty/Kint |
KINT_WIN | |
KINT_PHP70 |
1 |
KINT_PHP71 |
1 |
KINT_PHP72 |
1 |
KINT_PHP73 |
1 |
KINT_PHP74 |
1 |
KINT_PHP80 |
1 |
KINT_PHP81 |
1 |
Path | https://weather.wingzero.tw/zh-CN/forecast/mountain |
HTTP Method | GET |
IP Address | 172.68.119.166 |
Is AJAX Request? | no |
Is CLI Request? | no |
Is Secure Request? | yes |
User Agent | CCBot/2.0 (https://commoncrawl.org/faq/) |
Header | Value |
---|---|
Cf-Visitor | {"scheme":"https"} |
Cf-Ipcountry | US |
Cf-Connecting-Ip | 18.97.9.175 |
Cdn-Loop | cloudflare; loops=1 |
Host | weather.wingzero.tw |
X-Forwarded-Proto | https |
Accept-Language | en-US,en;q=0.5 |
Cf-Ray | 92395126686e0578-NRT |
If-Modified-Since | Tue, 03 Dec 2024 04:59:43 GMT |
Accept-Encoding | gzip, br |
Accept | text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 |
User-Agent | CCBot/2.0 (https://commoncrawl.org/faq/) |
X-Forwarded-For | 18.97.9.175 |
Response Status | 200 - OK |
Header | Value |
---|---|
Cache-control | no-store, max-age=0, no-cache |
Content-Type | text/html; charset=UTF-8 |
Memory Usage | 128MB |
Peak Memory Usage: | 128MB |
Memory Limit: | 128M |