|
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... :-/
[Back to original message]
|