For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > November 2005 > fsockopen problem on port 110









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author fsockopen problem on port 110
Thibaut HENRY

2005-11-10, 6:56 pm

Hello
I have a problem with the fsockopen function....

Here is my code :
<?
$fp = fsockopen($server, $port, $errno, $errstr, 30);
if (!$fp) {
echo "ERREUR : $errstr ($errno)<br />\n";
}
?>
with
server="ww.free.fr" and port=80 : evrything is OK
but with
server="pop.free.fr" and port="110"
I have got the output : "ERREUR : ()"
Where is the problem ?





Colin McKinnon

2005-11-10, 6:56 pm

Thibaut HENRY wrote:

> Hello
> I have a problem with the fsockopen function....
>
> Here is my code :

<snip>

OK

> with
> server="ww.free.fr" and port=80 : evrything is OK
> but with
> server="pop.free.fr" and port="110"
> I have got the output : "ERREUR : ()"
> Where is the problem ?


On the server? What happens when you 'telnet pop.free.fr 110' ?

C.
Thibaut HENRY

2005-11-10, 6:56 pm

> On the server? What happens when you 'telnet pop.free.fr 110' ?

I dont know what happens on the server because i dont have the right to use
telnet (my homepage is on free server)
From my computer 'telnet pop.free.fr 110' works, i manage to rich the pop
server...

Maybe there is a firewall on free server that prevent me to rich the pop
server !


"Colin McKinnon"
<colin.thisisnotmysurname@ntlworld.deletemeunlessURaBot.com> a écrit dans le
message de news: pIPcf.12170$Cq4.9036@newsfe7-gui.ntli.net...
> Thibaut HENRY wrote:
>
> <snip>
>
> OK
>
>
> On the server? What happens when you 'telnet pop.free.fr 110' ?
>
> C.



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com