CSE :: PHP - CS
- What function can you use to create your own streams using the PHP stream wrappers and register them within PHP?
- The ftp_mkdir() function creates a directory on the FTP server.
-
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 -
What will the following script do?
<?php
echo getservbyname ('ftp', 'tcp');
?>
- The ftp_size() function returns the size of a specified file on the FTP server.
- 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?
- The FTP functions are used to ....... files from file servers.
-
Which of the following are valid PHP stream transports?
1. http
2. STDIO
3. ftp
4. STDOUT
5. stream