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”); fsockopen(“www.examians.com”, 80); sockopen(80,”www.examians.com”); sockopen(“www.examians.com”, 80); fsockopen(80,”www.examians.com”); fsockopen(“www.examians.com”, 80); sockopen(80,”www.examians.com”); sockopen(“www.examians.com”, 80); ANSWER DOWNLOAD EXAMIANS APP
PHP Networking Which of the following are valid PHP stream transports?1. http2. STDIO3. ftp4. STDOUT5. stream Option 2 and 5 Option 3 and 5 Option 4 and 5 Option 1 and 4 Option 2 and 5 Option 3 and 5 Option 4 and 5 Option 1 and 4 ANSWER DOWNLOAD EXAMIANS APP
PHP Networking What is the default port number of HTTP’s? 70 80 100 90 70 80 100 90 ANSWER DOWNLOAD EXAMIANS APP
PHP Networking Which of the following statements is used to add an attachment to the mail? $mimemail=>attachment(‘attachment.pdf’); $mimemail->attachment(‘attachment.pdf’); $mimemail=>addAttachment(‘attachment.pdf’); $mimemail->addAttachment(‘attachment.pdf’); $mimemail=>attachment(‘attachment.pdf’); $mimemail->attachment(‘attachment.pdf’); $mimemail=>addAttachment(‘attachment.pdf’); $mimemail->addAttachment(‘attachment.pdf’); ANSWER DOWNLOAD EXAMIANS APP
PHP Networking What will the following script do?echo getservbyname ('ftp', 'tcp'); A list of the ports associated with all services except FTP A list of the FTP servers on the local network The address of the FTP server called “tcp” The port associated with the TCP service called “FTP” A list of the ports associated with all services except FTP A list of the FTP servers on the local network The address of the FTP server called “tcp” The port associated with the TCP service called “FTP” ANSWER DOWNLOAD EXAMIANS APP
PHP Networking The windows version of PHP has built-in support for the FTP extension True False True False ANSWER DOWNLOAD EXAMIANS APP