- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
if (sp($this->answer, "\r\n\r\n") !== false) { // separating header and body by RFC
$this->divPos = sp($this->answer, "\r\n\r\n");
$this->divLen = 4;
} elseif (sp($this->answer, "\n\n") !== false) { // but some guys... don't like RFC...
$this->divPos = sp($this->answer, "\n\n");
$this->divLen = 2;
} else {
$this->divPos = mb_strlen($this->answer);
$this->divLen = 0;
}
TheHamstertamer 02.10.2011 09:52 # −4
Минус.
Lure Of Chaos 02.10.2011 11:58 # +1
jokz 02.10.2011 21:33 # +1
Lure Of Chaos 02.10.2011 21:44 # 0
3.14159265 03.10.2011 13:49 # +1
оно в головах тех парней, которые don't like RFC...