エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
タイムアウト時に次の処理へ移行する方法
通信メモ <?php // PHPってタイムアウト設定がめんどいすね function request($host, $path) { $timeout... 通信メモ <?php // PHPってタイムアウト設定がめんどいすね function request($host, $path) { $timeout1 = 10; $timeout2 = 10; $errno = null; $errstr = null; $data = null; if (!$fp = fsockopen($host, 80, $errno, $errstr, $timeout1)) { echo "Unable to get server status"; return false; } stream_set_blocking($fp, true); stream_set_timeout($fp, $timeout2); $info = stream_get_meta_data($fp); fwrite($fp, "GET {$path} HTTP/1.1\