|
mysqli::set_local_infile_handlermysqli_set_local_infile_handlerSet callback function for LOAD DATA LOCAL INFILE command DescriptionObject oriented style
bool mysqli::set_local_infile_handler
( mysqli
$link
, callable $read_func
)Procedural style
bool mysqli_set_local_infile_handler
( mysqli
$link
, callable $read_func
)Set callback function for LOAD DATA LOCAL INFILE command The callbacks task is to read input from the file specified in the LOAD DATA LOCAL INFILE and to reformat it into the format understood by LOAD DATA INFILE. The returned data needs to match the format specified in the LOAD DATA Parameters
The callback function should return the number of characters stored
in the Return Values
Returns ExamplesExample #1 mysqli::set_local_infile_handler example Object oriented style
<?php Procedural style
<?php The above examples will output: Input: 23,foo 42,bar Output: 23,FOO 42,BAR See Also
|