Home / CSE / PHP - CS :: PHP Networking

CSE :: PHP - CS

  1. What function can you use to create your own streams using the PHP stream wrappers and register them within PHP?

  2. A.

     wrapper_register

    B.

     stream_wrapper

    C.

     stream_wrapper_register

    D.

     stream_wrapper_reg

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. The windows version of PHP has built-in support for the FTP extension

  4. A.

     True

    B.

     False

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. The ftp_mkdir() function creates a directory on the FTP server.

  6. A.

     ftp_mkdir()

    B.

     ftp_makekdir()

    C.

     ftp_mkdirectory()

    D.

     Both A & B

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Which of the following operations cannot be performed using the standard ftp:// stream wrapper? 
    1. Reading a file
    2. Writing a file
    3. Establishing a stateful connection and changing directories interactively
    4. Creating a new directory

  8. A.

     Option 3 and 4

    B.

     Option 1 and 3

    C.

     Option 2 and 4

    D.

     Option 1 and 4

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. What will the following script do?

    <?php

    echo getservbyname ('ftp', 'tcp');

    ?>

  10. A.

     A list of the FTP servers on the local network

    B.

     The address of the FTP server called “tcp”

    C.

     The port associated with the TCP service called “FTP”

    D.

     A list of the ports associated with all services except FTP

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. The ftp_size() function returns the size of a specified file on the FTP server.

  12. A.

     get_ftp_size()

    B.

     ftp_file_size()

    C.

     ftp_size()

    D.

     ftp_amount()

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. When dealing with timeout values in sockets, the connection timeout can be changed independently of the read/write time out. Which function must be used for this purpose?

  14. A.

     stream_get_timeout

    B.

     stream_set_timeout

    C.

     stream_fset_timeout

    D.

     stream_fget_timeout

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Which of the following network transports doesn’t PHP support?

  16. A.

     tcp

    B.

     udp

    C.

     udg

    D.

     pdc

    E.

     unix

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. The FTP functions are used to ....... files from file servers.

  18. A.

     Open

    B.

     Download

    C.

     Close

    D.

     Upload

    E.

     All of above

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. Which of the following are valid PHP stream transports?
    1. http
    2. STDIO
    3. ftp
    4. STDOUT
    5. stream

  20. A.

     Option 3 and 5

    B.

     Option 1 and 4

    C.

     Option 4 and 5

    D.

     Option 2 and 5

    View Answer

    Workspace

    Discuss Discuss in Forum