<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=22815&amp;view=findpost&amp;p=168522</guid>
        <pubDate>Thu, 18 Apr 2002 10:10:02 +0000</pubDate>
        <title>Что это может быть?</title>
        <link>https://forum.sources.ru/index.php?showtopic=22815&amp;view=findpost&amp;p=168522</link>
        <description><![CDATA[andrey: premature end of script headers обычно означает ошибку в скрипте. См. httpd.log для описания.]]></description>
        <author>andrey</author>
        <category>WWW Masters. Прочее</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=22815&amp;view=findpost&amp;p=168521</guid>
        <pubDate>Thu, 18 Apr 2002 09:53:00 +0000</pubDate>
        <title>Что это может быть?</title>
        <link>https://forum.sources.ru/index.php?showtopic=22815&amp;view=findpost&amp;p=168521</link>
        <description><![CDATA[AVK: PHP 4.1.2 под Win'98:<br><br>1) PHP иногда выдает в лог сервера: Premature end of script headers: c:/php/php.exe<br> и выполняет недопустимую операцию.<br><br>2) При работе с сокетами PHP опять таки выполняет недопустимую операцию если не может подсоедениться (функция socket_connect). Т.е. например в приведенном ниже примере (порт 20 не открыт). Если в том же примере заменить на порт 21 (который открыт) то все работает нормально.<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$socket = socket_create (AF_INET, SOCK_STREAM, 0);<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if ($socket &lt; 0)<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo &quot;socket_create() failed: reason: &quot; . socket_strerror ($socket) . &quot;\n&quot;;<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;else echo &quot;OK.\n&quot;;<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$result = socket_connect ($socket, &quot;172.20.14.71&quot;, &quot;20&quot;);<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if ($result &lt; 0)<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo &quot;socket_connect() failed.\nReason: ($result) &quot; . socket_strerror($result) . &quot;\n&quot;;<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;else<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo &quot;OK.\n&quot;;<br><br>]]></description>
        <author>AVK</author>
        <category>WWW Masters. Прочее</category>
      </item>
	
      </channel>
      </rss>
	