1. Question:Define DNS. 

    Answer
    The Domain Name System (DNS) allows to use domain names (e.g. yahoo.com) in place of the corresponding IP address, such as 192.0.32.166.






    1. Report
  2. Question:What is domain name server? 

    Answer
    The domain names and their complementary IP addresses are stroed on domain name servers, which are interspersed across the globe.






    1. Report
  3. Question:What are the five  configuration directives that pertinent to PHP mail() function? 

    Answer
    1. SMTP=string, Scope:PHP_INI_ALL
    2. sendmail_from=stirng, Scope:PHP_INI_ALL
    3. sendmail_path=string, Scope:PHP_INI_SYSTEM
    4. smtp_port=integer, Scope:PHP_INI_ALL
    5. mail.force_extra_parameters=string, Scope:PHP_INI_SYSTEM






    1. Report
  4. Question:Explain the parameters of PHP’s mail function. 

    Answer

    The PHP mail() function is used to send emails from inside a script.

    Prototype:

    boolean mail(string to, string subject, string message [, string addl_headers [, string addl_params]])

    ParameterDescription
    toRequired. Specifies the receiver / receivers of the email
    subjectRequired. Specifies the subject of the email. Note: This parameter cannot contain any newline characters
    messageRequired. Defines the message to be sent. Each line should be separated with a LF (\n). Lines should not exceed 70 characters
    headersOptional. Specifies additional headers, like From, Cc, and Bcc. The additional headers should be separated with a CRLF (\r\n)
    parametersOptional. Specifies an additional parameter to the sendmail program


    Example:

    <?php
      
        mail("client@example.com","This is a subject","This is the mail body","from:admin@example.com\r\n");

    ?>






    1. Report
  5. Question:Name five internet services that commonly operates on a particular communications port. 

    Answer
    1. HTTP - Hyper Text Transfer Protocol
    2. FTP - File Transfer Protocol
    3. POP3 - Post Office Protocol
    4. IMAP - Internet Message Access Protocol
    5. SSH - Secure SHell






    1. Report
Copyright © 2025. Powered by Intellect Software Ltd