[int$options = 0],
[bool$verbose = false]
This function passes the arguments to the (remote) database server. There it starts a new restore process. Therefore you won't get any responses.
A previously opened connection to the database server.
The absolute path on the server where the backup file is located.
The path to create the new database on the server. You can also use database alias.
Additional options to pass to the database server for restore. The options parameter can be a combination of the following constants: IBASE_RES_DEACTIVATE_IDX, IBASE_RES_NO_SHADOW, IBASE_RES_NO_VALIDITY, IBASE_RES_ONE_AT_A_TIME, IBASE_RES_REPLACE, IBASE_RES_CREATE, IBASE_RES_USE_ALL_SPACE, IBASE_PRP_PAGE_BUFFERS, IBASE_PRP_SWEEP_INTERVAL, IBASE_RES_CREATE. Read the section about for further information.
Since the restore process is done on the database server, you don't have any chance to get its output. This argument is useless.
Returns true on success or false on failure.
Since the restore process is done on the (remote) server, this function just passes the arguments to it. While the arguments are legal, you won't get false.