Заходи заходи






Сейчас в чате 0
Их боялся Флинт
Модеры:
Orkana Cyber_Ghost zl0l

Админы:
del T DreamX MoRS
Бесполезная инфа
Бесполезные линки

Valid XHTML 1.0 Transitional

> > Coding > php 
MoRS: php
MoRS
pic
30 2009 12:37
13 2015 18:24



c http
 
PHP
span style="color: #808080; font-style: italic;">/*
http .
Request :
        Host -
        Target - ()
        Vars - , ( - )
        Cookies - ( - )
        Method - (POST, GET)
 
:
        Cookies -
        Header -
        Data - 
 
--     
mors @ list.ru
*/
 

//========================================================
//========================================================
"GET""POST"//===============================================
//===============================================
"POST /$target HTTP/1.0
"
.
 
"Host: $host
"
.
 
"Content-Type: application/x-www-form-urlencoded
"
.
 
"Content-Length: ""
"
.
 
"Cookie: $cook
"
.
 
"Connection: close
 
"
/*if (!$socket) {
 
         $Result["errno"] = $errno;
 
         $Result["errstr"] = $errstr;
 
         return $Result;
 
} */
//=============================================
//=============================================
"GET /$target$data HTTP/1.1
"
.
 
"Host: $host
"
.
 
"Cookie: $cook
"
.
 
"Keep-Alive: 300
"
.
 
"Referer: http://www.delchat.ru/chat_index.php
"
.
 
"Connection: keep-alive
 
"
"errno"] = $errno;
 
         $Result["errstr"//===========================================
//===========================================
"
 
"
"
"
"
 
"
": ""Set-Cookie""Set-Cookie""Set-Cookie""Set-Cookie""Set-Cookie""; ""=""deleted""Cookies""Header""Data"
 
x
pic
07 2014 13:15



:
HelloWorld

P.S.
, , . , : 1,1,2,3,5,8,13,21,34,55 ..
! .
MoRS
pic
13 2015 03:03
13 2015 03:13


(before, current, next)
 
$next = $before + $current;
 
.. ))