PHP mysqli set_local_infile_handler() İşlev
Tanım ve Kullanım
set_local_infile_handler() / mysqli_set_local_infile_handler() işlevi, LOAD DATA LOCAL INFILE komutu için bir geri çağırma işlevi ayarlar.
Geri arama işlevleri görevleri, LOAD DATA LOCAL INFILE içinde belirtilen dosyadan girdiyi okumak ve LOAD DATA INFILE tarafından anlaşılan biçimde yeniden biçimlendirmektir.
Döndürülen veriler, LOAD DATA'da belirtilen formatla eşleşmelidir.
Sözdizimi
Nesne yönelimli stil:
$mysqli ->
set_local_infile_handler(read_file)
Prosedür stili:
mysqli_set_local_infile_handler(read_file)
Parametre Değerleri
Parameter | Description |
---|---|
connection | Required. Specifies the MySQL connection to use |
read_func | Required. Specifies a callback function or objext that can take the
following params: stream - A PHP stream associated with the SQL commands INFILE &buffer - A string buffer to store the rewritten input into buflen - The maximum number of characters to be stored in the buffer &erromsg - If an error occurs you can store an error message in here |
Teknik detaylar
Geri dönüş değeri: | Başarı konusunda DOĞRU. Başarısızlıkta YANLIŞ |
---|---|
PHP Sürümü: | 5+ |
❮ PHP MySQLi Referansı