You are here: Re: Help with sockets needed « PHP Programming Language « IT news, forums, messages
Re: Help with sockets needed

Posted by artemio on 09/15/06 18:01

Hello and thanks for your reply!

Oh sorry, yes, with HTTP it indeed is like this, but here is an example
for POP3:

$Connection = fsockopen( "soniccharger.com", 110, $ErrNo, $ErrStr, 30
);

if($Connection){

echo "Connection established\n";

while(!feof($Connection)){

echo fgets($Connection, 128);

}

echo "We got some data\n";

} else {

echo "Error $ErrNo: $ErrStr\n";

}

When I run it I get:

$ php pop3test.php
Connection established
+OK Hello there.

And then it gets stuck... :-/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация