[過去ログ]
PHP質問・雑談スレ4【初心者お断り(ROM歓迎)】 [無断転載禁止]©2ch.net (1002レス)
PHP質問・雑談スレ4【初心者お断り(ROM歓迎)】 [無断転載禁止]©2ch.net http://medaka.5ch.io/test/read.cgi/php/1498653249/
上
下
前
次
1-
新
通常表示
512バイト分割
レス栞
このスレッドは過去ログ倉庫に格納されています。
次スレ検索
歴削→次スレ
栞削→次スレ
過去ログメニュー
57: nobodyさん [sage] 2017/07/26(水) 18:35:13 ID:??? >>56 > なんでcsv関係関数もSplFileObjectも全部、改行コードの指定がないんだろう 別に指定しなくても読めるから http://medaka.5ch.io/test/read.cgi/php/1498653249/57
58: nobodyさん [sage] 2017/07/26(水) 20:09:16 ID:??? >>57 enclosureだってRFC的にはencloseは " だから指定なくても読めるけど変更可能じゃん? エスケープ文字は…\と""連続があるからまあわかる 区切り文字はtsvを読みたい人もいるだろうからなのかな http://medaka.5ch.io/test/read.cgi/php/1498653249/58
59: nobodyさん [sage] 2017/08/08(火) 11:52:15 ID:??? strpos(string haystack, string needles) なんだよhaystackって干し草の山?意味わからんでえ http://medaka.5ch.io/test/read.cgi/php/1498653249/59
60: nobodyさん [sage] 2017/08/08(火) 20:00:46 ID:??? while (!feof($fp)) { fgets($fp); } fclose($fp); これが終わらない$fpにはどうしたらベストですかね? http://medaka.5ch.io/test/read.cgi/php/1498653249/60
61: nobodyさん [sage] 2017/08/08(火) 20:25:54 ID:??? EOFが返ってこないもの(/dev/zeroとか/dev/urandomとか)を読むなら終了条件がEOFまで読んだらってのがおかしい http://medaka.5ch.io/test/read.cgi/php/1498653249/61
62: nobodyさん [sage] 2017/08/08(火) 20:33:25 ID:??? >>61 すみません説明不足でした fsockopenで開いたwebサーバですね サーバによっては返さないみたいで その場合どうしたらいいのかなと http://medaka.5ch.io/test/read.cgi/php/1498653249/62
63: nobodyさん [sage] 2017/08/08(火) 20:43:22 ID:??? え、keep-aliveの話? http(s)で繋ぐだけならfile_get_contentsやcurlでいいじゃん ストリーミングだっつーなら・・・・・・ http://medaka.5ch.io/test/read.cgi/php/1498653249/63
64: nobodyさん [sage] 2017/08/08(火) 21:05:18 ID:??? あーkeep-aliveですか てことはconnection: close送ればいいのかな http://medaka.5ch.io/test/read.cgi/php/1498653249/64
65: nobodyさん [sage] 2017/08/08(火) 21:13:08 ID:??? fsockopen使っててconnection: close送ればいいのかな、って 自分でkeep-aliveを明示的に送ってんじゃないんかい? http://medaka.5ch.io/test/read.cgi/php/1498653249/65
66: nobodyさん [sage] 2017/08/08(火) 21:15:53 ID:??? >>65 送ってないです connectionは未指定でした http://medaka.5ch.io/test/read.cgi/php/1498653249/66
67: nobodyさん [sage] 2017/08/08(火) 21:36:05 ID:??? とりあえず低レベルに手を出すなら今どうなってるか自分で確認せんと 聞くならなんのリソースでどんなプロトコルでどんなリクエスト送っててどういう状況になってるかはじめから書かんと HTTP/1.1を送ってて1回1回切りたいならkeep-aliveを指定してなくてもconnection: close cURLでいいような気がするが http://medaka.5ch.io/test/read.cgi/php/1498653249/67
68: nobodyさん [sage] 2017/08/08(火) 22:57:30 ID:??? >>67 ありがとうございます connection: close送ってもだめでした いうこと聞いてくれないサーバなのかもしれません file_get_contentsだとcontext指定しても期待した結果が返って来ず cURLは面倒くさそうだったのでスルーしてましたがcURLでも試してみます http://medaka.5ch.io/test/read.cgi/php/1498653249/68
69: nobodyさん [sage] 2017/08/08(火) 23:58:02 ID:??? guzzlehttp/requestとかじゃダメなんか http://medaka.5ch.io/test/read.cgi/php/1498653249/69
70: nobodyさん [sage] 2017/08/09(水) 06:55:29 ID:??? guzzleって使ってなんかcurlにはない良いことあるの http://medaka.5ch.io/test/read.cgi/php/1498653249/70
71: nobodyさん [sage] 2017/08/09(水) 10:35:03 ID:??? keep-aliveって、こっちがcloseしたら相手がsocketを破棄するとかそういうのじゃないよ http://medaka.5ch.io/test/read.cgi/php/1498653249/71
72: nobodyさん [sage] 2017/08/09(水) 13:44:54 ID:??? そうなのか?だとしたら知ったかしてて悪かった http://medaka.5ch.io/test/read.cgi/php/1498653249/72
73: nobodyさん [] 2017/08/09(水) 15:21:18 ID:cGBSy5e7 HTTPなら読み込み終了条件はContent-Lengthヘッダがあればそのサイズだけ読んだとき, Transfer-Encoding:chunkedのときはサイズ0の空チャンクを読むまでだろ 規格外の規約で通信するなら知らんが http://medaka.5ch.io/test/read.cgi/php/1498653249/73
74: nobodyさん [sage] 2017/08/09(水) 17:12:26 ID:??? タイムアウトを実装 http://medaka.5ch.io/test/read.cgi/php/1498653249/74
75: nobodyさん [sage] 2017/08/10(木) 06:40:33 ID:??? >>73 それ以外のケースある?その2つだけ? http://medaka.5ch.io/test/read.cgi/php/1498653249/75
76: nobodyさん [sage] 2017/08/11(金) 20:06:35 ID:??? >>75 RFC7230とRFC7540あたりを読む http://medaka.5ch.io/test/read.cgi/php/1498653249/76
メモ帳
(0/65535文字)
上
下
前
次
1-
新
書
関
写
板
覧
索
設
栞
歴
あと 926 レスあります
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.012s