fsockopen php
[ ]
, , fsockopen php.
, ?
.
<?php
$ret = "\r\n"; //
//
$host = 'varve.ru'; // ,
$fsocket_connect = fsockopen($host, 80, $errno, $errstr, 30); // ,
// 80, errno - , errstr - ,
// 30
if ( !$fsocket_connect ) {
echo $errstr." (".$errno.")<br>\n"; // ,
}
else {
// HTTP -
$out = "GET / HTTP/1.1".$ret; // GET http 1.1
$out .= "Host: ".$host.$ret; // ()
$out .= "Connection: Close".$ret.$ret; //
$responce = ''; //
fwrite($fsocket_connect, $out); // - . .
while (!feof($fsocket_connect)) // - - . . {
$responce .= fgets($fsocket_connect, 128); // responce
}
fclose($fsocket_connect); //
$responce = explode($ret, $responce); // (responce)
echo '<pre>';
var_dump($responce); // responce
echo '</pre>';
}
?>
php , responce varve.ru $out.
. . , TCP/IP (request) (responce) .
, - - .
, .
cron, . . . .
, - , .
, . , . , .
, , . Google Chrome [F12] . Network .
![Google Chrome [F12] . Network . Google Chrome [F12] . Network .](papers/sitecre/php_lessons/how_build_a_site/php/fsocket/images/chrome_dev_tool_network_inspect.jpg)
- Google Chrome, [F12].
Network. ( ).
. , ,
.
![- Google Chrome, [F12]. Network. ( ).
. , ,
. - Google Chrome, [F12].
Network. ( ).
. , ,
.](papers/sitecre/php_lessons/how_build_a_site/php/fsocket/images/chrome_dev_tool_network_inspect_headers.jpg)
- URL (Request URL), - 200 - . . , Request Headers
Responce Headers .
. . , .
- , , , , .
. , . . .
.
[ ]
:
0

0

|
|
|
|
,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
,
|
|
|
|
|
|
|
|
|
|
|
|
|
, , 2020 - ,
|
|
|
|
|
|
|
|
|
|
, , , .
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(3), (1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(3), (1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
,
|
 anova
|
 A Knots Story |
 sabotage |
|
|
|
|
|
|
|
,
|
|
|
|
|
|
|
,
|
|
|
|
|
|
|
, ,
|
|
|
|
|
|
|
, ,
|
|
|
|
|
|
|
, , cms,
|
|
|
|
|
|
|
,
|
|
|
|
|
|
|
, , ria xxl , fly snow 3d , . -
|
|
|
|
|
|
fle game engine -
|
|
|
|
|
|
- / megainformatic cms express files -
|
|
|
|
|
|
Flash, Flash - .
|
|
|
|
|
|
(multi lang), , . - (megainformatic cms social), megainformatic cms groupon, keywords gen + , .
megainformatic.ru/webjob/ -
- |
|
|
megainformatic.ru/webjob/
megainformatic.ru/webjob/ -
- |
|
|
|
|
|
,
megainformatic cms admin -
|
|
|
|
|
|
350 . |
5800 . |
3000 . |
500 . |
|
|
|
|
|
|
|
|
|
|
|
|
megainformatic cms free - Photoshop
,
Adobe Photoshop. ,
- GIMP, Corel Photo Paint .
|
|
|
|
|
|
2d 3d, , !
. ,
,
!!! ( , ! ). |
|
|
|
|
|
|
|
|
|
|
|
,
: -
350 . |
510 . |
fle game engine |
|
- , ,
, .
- - :
- |
|
|
|
|
|
|
|
|
|
|
|
, 3ds max, photoshop, c++,
directx, delphi php.
,
.
. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Photoshop free,
delphi directx - , !,
mp3 - ,
megainformatic cms express -
php + my sql. |
|
|
|
|
|
|
|
|
|
|
|
,
, delphi directx 8.1 (
3d ), 3d studio max, -
Fruity Loops Studio |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|