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

fsockopen(80,”www.examians.com”);
sockopen(“www.examians.com”, 80);
sockopen(80,”www.examians.com”);
fsockopen(“www.examians.com”, 80);

ANSWER DOWNLOAD EXAMIANS APP

PHP Networking
What will the following script do?
echo getservbyname ('ftp', 'tcp');

The port associated with the TCP service called “FTP”
The address of the FTP server called “tcp”
A list of the ports associated with all services except FTP
A list of the FTP servers on the local network

ANSWER DOWNLOAD EXAMIANS APP