PHP Networking Which of the following statements is used to add an attachment to the mail? $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’); $mimemail->attachment(‘attachment.pdf’); ANSWER DOWNLOAD EXAMIANS APP
PHP Networking Which one of the following statements can be used to establish port 80 connection with www.examians.com? sockopen(“www.examians.com”, 80); fsockopen(80,”www.examians.com”); sockopen(80,”www.examians.com”); fsockopen(“www.examians.com”, 80); sockopen(“www.examians.com”, 80); fsockopen(80,”www.examians.com”); 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” A list of the FTP servers on the local network The address of the FTP server called “tcp” A list of the ports associated with all services except FTP The port associated with the TCP service called “FTP” A list of the FTP servers on the local network The address of the FTP server called “tcp” A list of the ports associated with all services except FTP ANSWER DOWNLOAD EXAMIANS APP
PHP Networking Which of the following operations cannot be performed using the standard ftp:// stream wrapper?1. Reading a file2. Writing a file3. Establishing a stateful connection and changing directories interactively4. Creating a new directory Option 1 and 4 Option 1 and 3 Option 2 and 4 Option 3 and 4 Option 1 and 4 Option 1 and 3 Option 2 and 4 Option 3 and 4 ANSWER DOWNLOAD EXAMIANS APP
PHP Networking How many configuration directives pertinent to PHP’s mail function are available? 6 5 4 7 6 5 4 7 ANSWER DOWNLOAD EXAMIANS APP
PHP Networking The ftp_mkdir() function creates a directory on the FTP server. ftp_mkdirectory() ftp_mkdir() Both A & B ftp_makekdir() ftp_mkdirectory() ftp_mkdir() Both A & B ftp_makekdir() ANSWER DOWNLOAD EXAMIANS APP