のくす牧場
コンテンツ
牧場内検索
カウンタ
総計:126,339,308人
昨日:no data人
今日:
最近の注目
人気の最安値情報

    私的良スレ書庫

    不明な単語は2ch用語を / 要望・削除依頼は掲示板へ。不適切な画像報告もこちらへどうぞ。 / 管理情報はtwitter
    ログインするとレス評価できます。 登録ユーザには一部の画像が表示されますので、問題のある画像や記述を含むレスに「禁」ボタンを押してください。

    元スレ【テスト】PHPで2chにHello Worldを書き込む 2

    php スレッド一覧へ / php とは? / 携帯版 / dat(gz)で取得 / トップメニュー
    スレッド評価: スレッド評価について
    みんなの評価 :
    タグ : 追加: タグについて ※前スレ・次スレは、スレ番号だけ登録。駄スレにはタグつけず、スレ評価を。荒らしタグにはタグで対抗せず、タグ減点を。
    レスフィルター : (試験中)
    ←前へ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 次へ→ / 要望・削除依頼は掲示板へ / 管理情報はtwitter
    252 : >> - 2013/08/28(水) NY:AN:NY.AN ID:???.net (+3,-30,+0)
    list( , , $server, , , $bbs, $key ) = explode( "/", $url );
    $body = "submit=%8F%91%82%AB%8D%9E%82%DE&FROM=" . $name . "&mail=" . $mail . "&MESSAGE=" . $mess . "&bbs=" . $bbs . "&key=" . $key . "&time=1";
    $length = strlen( $body );
    $head = "POST /test/bbs.cgi HTTP/1.1\r\nHost: " . $server . "\r\nUser-Agent: Monazilla/1.00\r\n" .
    "Referer:http://"; . $server . "/test/read.cgi/" . $bbs . "/" . $key . "/l50\r\nContent-Type: application/x-www-form-urlencoded\r\n";
    $out = $head . "Content-Length: " . $length . "\r\n\r\n" . $body;
    $fp = fsockopen( $server, 80, $errno, $errstr, 30 );
    if ( !$fp ) {
    echo "$errstr ($errno)<br>\n";
    exit;
    }
    fwrite( $fp, $out );
    $cookie = "Cookie: ";
    while ( !feof( $fp ) ) {
    $str = fgets( $fp, 128 );
    if ( strpos( $str, "Set-Cookie: " ) === 0 ) {
    $str = str_replace( "Set-Cookie: ", "", $str );
    list( $cook, ) = explode( ";", $str );
    $cookie .= $cook . "; ";
    }
    }
    fclose( $fp );
    253 : >> - 2013/08/28(水) NY:AN:NY.AN ID:???.net (+3,-30,-246)
    $cookie .= "NAME=\"\"; MAIL=\"\"; yuki=akari; HAP=" . $hap . ";\r\n";
    $out = $head . $cookie . "Content-Length: " . $length . "\r\n\r\n" . $body;
    $fp = fsockopen( $server, 80, $errno, $errstr, 30 );
    if ( !$fp ) {
    echo "$errstr ($errno)<br>\n";
    exit;
    }
    $check = "";
    fwrite( $fp, $out );
    while ( !feof( $fp ) ) {
    $check .= fgets( $fp, 128 );
    }
    fclose( $fp );
    if ( mb_strpos( $check, "<title>書きこみました。</title>" ) ) {
    echo "書きこみに成功しました。";
    exit();
    } else {
    echo "書きこみに失敗しました。";
    }

    ?>
    254 : nobodyさん - 2013/08/28(水) NY:AN:NY.AN ID:???.net (+9,-13,+2)
    Hello world
    255 : 忍法帖【Lv= - 2013/08/28(水) NY:AN:NY.AN ID:???.net (-11,-29,-13)
    !ninja
    256 : nobodyさん - 2013/08/30(金) NY:AN:NY.AN ID:???.net (+9,-13,+2)
    Hello world
    257 : nobodyさん - 2013/08/30(金) NY:AN:NY.AN ID:???.net (+9,-13,+2)
    Hello world
    258 : nobodyさん - 2013/09/01(日) 18:06:05.44 ID:???.net (+36,+18,+0)
    てす
    259 : nobodyさん - 2013/09/07(土) 22:22:51.13 ID:???.net (+43,+25,+0)
    てすてす
    260 : nobodyさん - 2013/09/09(月) 23:55:21.50 ID:9mhdyc+z.net (+3,+18,+0)
    てす
    262 : nobodyさん - 2013/09/12(木) 00:20:50.58 ID:???.net (+31,+13,+0)
    できるよ
    263 : nobodyさん - 2013/09/12(木) 23:48:46.36 ID:???.net (+9,-13,+2)
    Hello world
    264 : nobodyさん - 2013/09/13(金) 15:54:01.27 ID:???.net (+9,-13,+2)
    Hello world
    265 : !ninja - 2013/09/15(日) 00:36:57.76 ID:???.net (+36,+18,+0)
    てす
    266 : nobodyさん - 2013/09/18(水) 18:57:25.51 ID:???.net (+32,+14,+0)
    a
    267 : !ninja - 2013/09/18(水) 19:00:18.95 ID:???.net (+8,-9,+0)
    b
    268 : nobodyさん - 2013/09/18(水) 19:16:31.41 ID:???.net (+16,-1,+0)
    c
    269 : nobodyさん - 2013/09/18(水) 19:18:26.04 ID:???.net (+10,-7,+0)
    d
    270 : nobodyさん - 2013/09/18(水) 19:20:49.89 ID:???.net (+11,-6,+0)
    e
    271 : nobodyさん - 2013/09/18(水) 19:26:46.63 ID:???.net (+10,-7,+0)
    f
    272 : nobodyさん - 2013/09/18(水) 19:30:41.55 ID:???.net (+13,-4,+0)
    g
    273 : nobodyさん - 2013/09/18(水) 19:31:43.47 ID:???.net (+11,-6,+0)
    h
    274 : nobodyさん - 2013/09/18(水) 21:45:38.42 ID:???.net (+9,-13,+2)
    Hello world
    275 : nobodyさん - 2013/09/20(金) 21:48:39.13 ID:???.net (+9,-13,+2)
    Hello world
    276 : nobodyさん - 2013/09/24(火) 21:23:18.09 ID:???.net (+9,-13,+2)
    Hello world
    277 : ○!ninja - 2013/09/25(水) 22:41:17.78 ID:???.net (-6,-24,+0)
    ●テスト
    279 : !ninja - 2013/10/01(火) 01:43:27.26 ID:???.net (-11,-29,-13)
    !ninja
    280 : !ninja - 2013/10/01(火) 16:22:19.45 ID:???.net (+36,+18,+0)
    てす
    281 : nobodyさん - 2013/10/05(土) 11:32:14.00 ID:???.net (+32,+14,+0)
    a
    282 : 忍法帖【Lv= - 2013/10/05(土) 12:44:57.26 ID:???.net (+16,-1,+0)
    aaaa
    283 : nobodyさん - 2013/10/06(日) 00:55:54.89 ID:???.net (-10,-28,-1)
    bbbb
    284 : nobodyさん - 2013/10/06(日) 01:14:17.36 ID:???.net (-7,-25,+0)
    cccc
    285 : nobodyさん - 2013/10/12(土) 15:29:25.45 ID:???.net (-8,-26,+0)
    test
    286 : nobodyさん - 2013/10/15(火) 23:23:43.35 ID:???.net (+45,+27,+0)
    てすとん
    287 : 忍法帖【Lv= - 2013/10/15(火) 23:24:15.99 ID:???.net (+26,+8,-1)
    288 : 忍法帖【Lv= - 2013/10/17(木) 21:52:27.37 ID:???.net (-11,-29,-13)
    !ninja
    289 : nobodyさん - 2013/10/27(日) 21:45:00.64 ID:???.net (+9,-13,+2)
    Hello World
    290 : nobodyさん - 2013/10/27(日) 21:46:42.11 ID:???.net (-1,-29,+0)
    Hello World
    Part.2
    291 : nobodyさん - 2013/10/27(日) 21:49:59.66 ID:???.net (-1,-29,-3)
    Hello World
    Part.3
    コンマ00クル━━━━(゚∀゚)━━━━??
    292 : nobodyさん - 2013/10/27(日) 21:52:00.79 ID:???.net (-2,-30,-16)
    Hello World
    Part.4
    今度こそコンマ00クル━━━━(゚∀゚)━━━━??
    293 : nobodyさん - 2013/10/27(日) 22:10:00.65 ID:???.net (+47,+29,-3)
    全然来なかった・・・
    294 : nobodyさん - 2013/10/27(日) 22:10:59.69 ID:???.net (+28,+5,-2)
    全然来なかった・・・
    Part.2
    295 : nobodyさん - 2013/10/28(月) 11:41:00.40 ID:???.net (+5,-17,+0)
    コンマ00チャレンジ
    296 : nobodyさん - 2013/10/28(月) 11:41:59.43 ID:???.net (+5,-17,+0)
    コンマ00チャレンジ
    298 : nobodyさん - 2013/11/05(火) 23:54:08.39 ID:???.net (+9,-13,+2)
    Hello World
    300 : nobodyさん - 2013/11/09(土) 19:46:14.92 ID:???.net (+29,-30,+0)
    おい書き込みどころか確認画面にも辿り着かんぞどういうことだ
    500が返ってくるのに408って書いてあるし意味不明

    HTTP/1.1 500 Internal Server Error
    Date: Sat, 09 Nov 2013 ****** GMT
    Server: Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8q PHP/5.3.8 mod_antilor
    is/0.4
    Vary: Accept-Encoding
    Content-Length: 675
    Connection: close
    Content-Type: text/html; charset=iso-8859-1

    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>408 Request Time-out</title>
    </head><body>
    <h1>Request Time-out</h1>
    <p>The server encountered an internal error or
    misconfiguration and was unable to complete
    your request.</p>
    <p>Please contact the server administrator,
    ch2koha@banana8312.maido3.com and inform them of the time the error occurred,
    and anything you might have done that may have
    caused the error.</p>
    <p>More information about this error may be available
    in the server error log.</p>
    <hr>
    <address>Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8q PHP/5.3.8 mod_antilo
    ris/0.4 Server at kohada.2ch.net Port 80</address>
    </body></html>
    ←前へ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 次へ→ / 要望・削除依頼は掲示板へ / 管理情報はtwitterで / php スレッド一覧へ
    スレッド評価: スレッド評価について
    みんなの評価 :
    タグ : 追加: タグについて ※前スレ・次スレは、スレ番号だけ登録。駄スレにはタグつけず、スレ評価を。荒らしタグにはタグで対抗せず、タグ減点を。

    類似してるかもしれないスレッド


    トップメニューへ / →のくす牧場書庫について