Vidyalelo
PHP · Q7

PHP Networking

Programming · PHP · question 7

Q7

Which one of the following statements can be used to establish port 80 connection with www.examveda.com?

A.
fsockopen(“www.examveda.com”, 80);
Answer
B.
sockopen(80,”www.examveda.com”);
C.
fsockopen(80,”www.examveda.com”);
D.
sockopen(“www.examveda.com”, 80);

Answer: Option A

Solution

Answer: Option A
Solution:
The fsockopen() function establishes a connection to the resource designated by target on port.