PERL to PHP socket help
| From: | Rob Packer | Date: | Wed, 19 Jun 2002 23:31:25 +0000 |
| Subject: | PERL to PHP socket help | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-103040@lists.php.net to get a copy of this message | ||
Can anyone translate this from PERL to PHP (if it's not too much fuss)?
$remote = IO::Socket::INET->new(
Proto => "tcp",
PeerAddr => "65.255.558.22",
PeerPort => "http(80)",
Timeout => "10",
) || die ("Unable to connect to smtp
port at localhost");
I've seen the socket functions in the manual but thought someone might be
able to clarify this a bit for me.
Thanks for any efforts