PHP can open a socket port on a remote or local host. This article is a small example of using sockets: Connect to a Usenet newsgroup server, talk to servers, and download articles from newsgroups.
Open a socket in PHP
Use Fsockopen () to open a
PHP can open a remote or local server sockets! Here is a simple example of using sockets: Connect to a Usenet news server, communicate with the server, and download some articles from an accurate newsgroup.
Open the socket with PHP
Use Fsockopen ()
Reading articles
Now that we've got the article number for the last article, it's easy to read the last 10 articles. RFC977 says the article command can use either the article number or its message ID.
Here to note that the article number is
Socket programming, commonly used in C or C + +. Especially in Web application development, Perl is commonly used to implement sockets. In addition, using PHP for socket programming is also a choice. Can PHP be qualified? Of course. PHP is a
configuration of smtp| server SMTP
SMTP Simple Mail Transfer Protocol, which sends messages on a LAN or over the Internet. Consider setting up an SMTP virtual server for the nt2000.com domain as an example of how to configure an SMTP server.
Step 1
Server | interaction
Using System;
Using System.Text;
Using System.Net;
Using System.IO;
Using System.Net.Sockets;
Using System.Collections;
Using System.Diagnostics;
Namespace Nntptools {
Summary description of the CLASS1.
Class Debug {
The main
PHP can open a socket port on a remote or local host. This article is a small example of using a socket: even
Receive a Usenet newsgroup server, talk to the server, and download articles from newsgroups.
Open a socket in PHP
Use Fsockopen () to
Programming Author: Jo Long information/Zhang Xiaogang
Socket programming, commonly used in C or C + +. Especially in Web application development, Perl is commonly used to implement sockets. In addition, using PHP for socket programming is also a
By Armel Fauveau a wooden translation
PHP can open a socket port on a remote or local host. This article is a small example of using sockets: Connect to a Usenet newsgroup server, talk to servers, and download articles from newsgroups.
Open a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.