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)

  • What file to start php you specified in IIS? php.exe ? - A1essandro
  • @Eugene Master, tell me more about what you are doing. - And
  • <?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
  • You need to add a display of errors on the page: karashchuk.com/PHP/… - A1essandro

0