<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[fsockopen non funziona]]></title><description><![CDATA[<p dir="auto">ciao a tutti,<br />
sto usando la funzione fsockopen per controllare se un url è raggiungibile.<br />
Nel caso che controlla un url che esiste funziona, ma nel caso controlla un url inesistente restituisce i seguenti errori:</p>
<p dir="auto"><strong>Warning</strong>: fsockopen() [<a href="http://www.contattimsn.com/function.fsockopen" rel="nofollow ugc">function.fsockopen</a>]: php_network_getaddresses: getaddrinfo failed: Name or service not known in <strong>.............</strong><br />
<strong>Warning</strong>: fsockopen() [<a href="http://www.contattimsn.com/function.fsockopen" rel="nofollow ugc">function.fsockopen</a>]: unable to connect to <a href="http://inesistente.it:80" rel="nofollow ugc">inesistente.it:80</a> in <strong>.............................................</strong></p>
<p dir="auto"><strong>forse è un problema di configurazione del php?</strong></p>
]]></description><link>https://dev.connect.gt/topic/24113/fsockopen-non-funziona</link><generator>RSS for Node</generator><lastBuildDate>Sun, 06 Dec 2026 12:13:47 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/24113.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 23 Dec 2006 12:16:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to fsockopen non funziona on Sat, 23 Dec 2006 17:50:43 GMT]]></title><description><![CDATA[<p dir="auto">ah ok grazie...perchè io credevo che ritornasse un valore false..se non si connetteva</p>
]]></description><link>https://dev.connect.gt/post/413438</link><guid isPermaLink="true">https://dev.connect.gt/post/413438</guid><dc:creator><![CDATA[figoso]]></dc:creator><pubDate>Sat, 23 Dec 2006 17:50:43 GMT</pubDate></item><item><title><![CDATA[Reply to fsockopen non funziona on Sat, 23 Dec 2006 17:33:06 GMT]]></title><description><![CDATA[<p dir="auto">Non è un errore vero e proprio...è normale che php restituisca errore se nn riesce a connettersi ad un sito xkè questo è inesistente.<br />
Cmq se vuoi evitare l'"errore" metti un @ davanti alla funzione oppure (assegando la variabile $fp all'esecuzione di fsockopen):</p>
<pre><code class="language-php">if (!$fp) {
    echo "ERRORE: $errno - $errstr&lt;br&gt;\n";
</code></pre>
]]></description><link>https://dev.connect.gt/post/413432</link><guid isPermaLink="true">https://dev.connect.gt/post/413432</guid><dc:creator><![CDATA[probid]]></dc:creator><pubDate>Sat, 23 Dec 2006 17:33:06 GMT</pubDate></item></channel></rss>