All sources show how to deploy php site on the example of a simple display of information about php. In my site on php the code does not work. Here is the whole example: the code stops at socket_create(...); it is simply ignored and accordingly does not report anything ... Who faced this? Can anyone know why? (installed php via web installer from microsoft, test site works)
|
php.exe? - A1essandro<?php header('Content-Type: text/html;'); set_time_limit(0); ob_implicit_flush(); $address = '192.168.2.18'; $port = 5800; if (($socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP)) < 0) { echo "Ошибка создания сокета"; } else { echo "Сокет создан\n"; }<?php header('Content-Type: text/html;'); set_time_limit(0); ob_implicit_flush(); $address = '192.168.2.18'; $port = 5800; if (($socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP)) < 0) { echo "Ошибка создания сокета"; } else { echo "Сокет создан\n"; }- Eugene Master