PHP

PHP

Networking with PHP has 10 Questions

What is the full form of DNS?

Digital Network System
Domain Network System
Digital Name Systmem
Domain Name System
Which one of the following function checks for the existence of DNS records?

checkdns()
checkdnsr()
checkdnsrr()
checkdnsa()
Which one of the following function is used to return an array consisting of various DNS resource records pertinent to a specific domain?

dns_get_record()
dns_record()
dnsrr_get_record()
dnsrr_record()
Which one of the following function is used to retrieve the MX records for the domain specified by hostname?

getmx()
retrieve_mx()
getmxrr()
retrieve_mxrr()
What is the default port number of HTTP's?

70
80
90
100
Which one of the following function returns the port number of a specified service?

getportname()
getservername()
getserverbyname()
getservbyname()
Which one of the following statements can be used to establish port 80 connection with www.astiwz.com?

fsockopen("www.astiwz.com"?, 80);
sockopen(80,"?www.astiwz.com"?);
fsockopen(80,"?www.astiwz.com"?);
sockopen("www.astiwz.com"?, 80);
Which one of the following function is used to send a e-mail using PHP script?

mail_send()
send_mail()
mailrr()
mail()
How many configuration directives pertinent to PHP's mail function are available?

4
5
6
7
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');