Home  >  Article  >  Backend Development  >  Why is PHP socket programming divided into server-side PHP socket and client-side PHP socket?

Why is PHP socket programming divided into server-side PHP socket and client-side PHP socket?

WBOY
WBOYOriginal
2016-09-21 14:12:581023browse

php socket programming Why is it divided into server-side php socket and client-side php socket? Isn't php itself the server? ? A little confused.

I studied the tutorial on this website: http://www.codeceo.com/articl...

Excuse me, please take a look. What does he mean by server side and client side php socket? ?

Reply content:

php socket programming Why is it divided into server-side php socket and client-side php socket? Isn't php itself the server? ? A little confused.

I studied the tutorial on this website: http://www.codeceo.com/articl...

Excuse me, please take a look. What does he mean by server side and client side php socket? ?

Who said PHP is just a server-side thing? Get out and fight PP! The questions asked by LZ are all wrong.

  • First of all, you have to understand the meaning of the context socket here: the socket here refers to the http socket, which is built on tcp/ip/mac/fiber cable, etc. (transport layer/network layer/link layer/entity layer) Above, socket is commonly known as socket, which is end-to-end communication (client/server), not unilateral behavior. TCP determines the port, ip+mac determines the host, and the host+port is the http socket here.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn