set_local_infile_handler
Sets the callback function for the LOAD DATA LOCAL INFILE command.
The set_local_infile_handler()
/ mysqli_set_local_infile_handler()
function sets the callback function for the LOAD DATA LOCAL INFILE command.
The task of the callback function is to read input from the file specified in LOAD DATA LOCAL INFILE and reformat it to a format understood by LOAD DATA INFILE.
The returned data must match the format specified in LOAD DATA.
$mysqli -> set_local_infile_handler ( read_file )
mysqli_set_local_infile_handler ( read_file )
parameter | describe |
---|---|
connection | Required. Specify the MySQL connection to use |
read_func |
Required. Specifies a callback function or object that can accept the following parameters:
|