« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 27 for dbase (0.002 sec.)
dBase | PHP 8.3 10138
dBase はじめに 注意 : この拡張モジュールは » PECL レポジトリに移動 されており、以下のバージョン以降 PHP にバンドルされなくなっています。 PHP 5.3.0. These functions allow you to access records stored in dBase-format (dbf) databases. 警告 We ... recommend against using dBase files as your production database. Use » SQLite or choose any real SQL server instead; » MySQL or » Postgres are common ch ... oices with PHP. dBase support is here to allow you to import and export data to and from your web database, because the file format is commonly ... understood by Windows spreadsheets and organizers. 警告 As of dbase 7.0.0 the databases are automatically locked via flock() . There has been no support for locking earlier, so two concurren ...
https://man.mtool.work/php/8.3/book.dbase.html
dbase_create — Creates a database | PHP 8.3 9792
dbase_create (PHP 5 < 5.3.0, dbase 5, dbase 7) dbase_create — Creates a database 説明 function dbase_create ( string $path , array $fields , int $type = DBASE_TYPE_DBASE ): resource dbase_create() creates a dBase database with the given def ... inition. If the file already exists, it is not truncated. dbase_pack() can be called to force truncation. 注意 : この関数の動作は、 open_basedir の設定に依存します。 パラメータ path The ... path of the database. It can be a relative or absolute path to the file where dBase will store your data. fields An array of arrays, each array describing the format of one field of the database. Each field ... 注意 : The fieldnames are limited in length and must not exceed 10 chars. type The type of database to be created. Either DBASE_TYPE_DBASE or DBASE_TYPE_FOXPRO . 戻り値 Returns a database resource if the database is successfully created, or false if ...
https://man.mtool.work/php/8.3/function.dbase-create.html
定義済み定数 | PHP 8.3 9759
定義済み定数 以下の定数が定義されています。 この関数の拡張モジュールが PHP 組み込みでコンパイルされているか、 実行時に動的にロードされている場合のみ使用可能です。 DBASE_VERSION ( string ) The extension version. (Available as of dbase 7.0.0) ... DBASE_RDONLY ( int ) Open database for reading only. Used with dbase_open() . (Available as of dbase 7.0.0) DBASE_RDWR ( int ) O ... pen database for reading and writing. Used with dbase_open() . (Available as of dbase 7.0.0) DBASE_TYPE_DBASE ( int ) Create dBASE style database. Used with dbase_create() . (A ... vailable as of dbase 7.0.0) DBASE_TYPE_FOXPRO ( int ) Create FoxPro style database. Used with dbase_create() . (Available as of dbase 7.0.0) 他 ...
https://man.mtool.work/php/8.3/dbase.constants.html
dbase_open — Opens a database | PHP 8.3 9759
dbase_open (PHP 5 < 5.3.0, dbase 5, dbase 7) dbase_open — Opens a database 説明 function dbase_open ( string $path , int $mode ): resource | false dbase_open() opens a dBase database with the given access mode. 注意 : この関数の動作は、 ope ... dir の設定に依存します。 パラメータ path The path of the database. It can be a relative or absolute path to the file where dBase will store your data. mode An integer which correspond to those for the open() system call (Typically 0 means read-only, 1 ... means write-only, and 2 means read and write). 注意 : You can't open a dBase file in write-only mode as the function will fail to read the headers information and thus you can't use 1 as mode . As of ... dbase 7.0.0 you can use DBASE_RDONLY and DBASE_RDWR , respectively, to specify the mode . 戻り値 Returns a database resource on ...
https://man.mtool.work/php/8.3/function.dbase-open.html
dBase 関数 | PHP 8.3 9759
dBase 関数 例 Many examples in this reference require a dBase database. We will use /tmp/test.dbf that will be created in the example of dbase_create() . 目次 dbase_add_record — Adds a record to a database dbase_close — Closes a database dbase ... ase_create — Creates a database dbase_delete_record — Deletes a record from a database dbase_get_header_info — Gets the header info of a database dbase_get_reco ... rd — Gets a record from a database as an indexed array dbase_get_record_with_names — Gets a record from a database as an associative array dbase_numfields — Gets the number of fields ... of a database dbase_numrecords — Gets the number of records in a database dbase_open — Opens a database dbase_pack — Packs a database dbase_re ...
https://man.mtool.work/php/8.3/ref.dbase.html
dbase_pack — Packs a database | PHP 8.3 9710
dbase_pack (PHP 5 < 5.3.0, dbase 5, dbase 7) dbase_pack — Packs a database 説明 function dbase_pack ( resource $database ): bool Packs the specified database by permanently deleting all records marked for deletion using dbase_delete_record( ... ) . Note that the file will be truncated after successful packing (contrary to dBASE III's PACK command). パラメータ database The database resource, returned by dbase_open() or dbase_create() . 戻り値 成功し ... た場合に true を、失敗した場合に false を返します。 変更履歴 バージョン 説明 PECL dbase 7.0.0 database is now a resource instead of an int . 例 例1 Emptying a dBase database <?php // open in read-write mode $db ... = dbase_open ( '/tmp/test.dbf' , 2 ); if ( $db ) { $record_numbers = dbase_numrecords ( $db ); for ( $i = 1 ; $i <= $record_number ...
https://man.mtool.work/php/8.3/function.dbase-pack.html
dbase_replace_record — Replaces a record in a database | PHP 8.3 9677
dbase_replace_record (PHP 5 < 5.3.0, dbase 5, dbase 7) dbase_replace_record — Replaces a record in a database 説明 function dbase_replace_record ( resource $database , array $data , int $number ): bool Replaces the given record in the datab ... ase with the given data. パラメータ database The database resource, returned by dbase_open() or dbase_create() . data An indexed array of data. The number of items must be equal to the number of fields in the ... database, otherwise dbase_replace_record() will fail. 注意 : If you're using dbase_get_record() return value for this parameter, remember to reset t ... he key named deleted . number An integer which spans from 1 to the number of records in the database (as returned by dbase_numrecords() ). 戻り値 成功した場合に true を、失敗した場合に false を返します。 変更履歴 バージョン 説明 PECL dbase 7.0.0 ...
https://man.mtool.work/php/8.3/function.dbase-replace-record.html
dbase_add_record — Adds a record to a database | PHP 8.3 9628
dbase_add_record (PHP 5 < 5.3.0, dbase 5, dbase 7) dbase_add_record — Adds a record to a database 説明 function dbase_add_record ( resource $database , array $data ): bool Adds the given data to the database. パラメータ database The databas ... e resource, returned by dbase_open() or dbase_create() . data An indexed array of data. The number of items must be equal to the number of fields in the ... database, otherwise dbase_add_record() will fail. 注意 : If you're using dbase_get_record() return value for this parameter, remember to reset the k ... ey named deleted . 戻り値 成功した場合に true を、失敗した場合に false を返します。 変更履歴 バージョン 説明 PECL dbase 7.0.0 database is now a resource instead of an int . 例 例1 Inserting a record in a dBase database <?php // open in read-w ...
https://man.mtool.work/php/8.3/function.dbase-add-record.html
dbase_get_record_with_names — Gets a record from a database as an associative a... 9578
dbase_get_record_with_names (PHP 5 < 5.3.0, dbase 5, dbase 7) dbase_get_record_with_names — Gets a record from a database as an associative array 説明 function dbase_get_record_with_names ( resource $database , int $number ): array Gets a r ... ecord from a dBase database as an associative array. パラメータ database The database resource, returned by dbase_open() or dbase_create() . ... number The index of the record between 1 and dbase_numrecords($dbase_identifier) . 戻り値 An associative array with the record. This will also include a key named deleted wh ... ich is set to 1 if the record has been marked for deletion (see dbase_delete_record() ). Therefore it is not possible to retrieve the value of a field named deleted with this function. 各フィー ...
https://man.mtool.work/php/8.3/function.dbase-get-record-with-names.html
dbase_numfields — Gets the number of fields of a database | PHP 8.3 9578
dbase_numfields (PHP 5 < 5.3.0, dbase 5, dbase 7) dbase_numfields — Gets the number of fields of a database 説明 function dbase_numfields ( resource $database ): int Gets the number of fields (columns) in the specified database. 注意 : Fiel ... d numbers are between 0 and dbase_numfields($db)-1 , while record numbers are between 1 and dbase_numrecords($db) . パラメータ database The database resourc ... e, returned by dbase_open() or dbase_create() . 戻り値 The number of fields in the database, or false if an error occurs. 変更履歴 バージョン 説 ... 明 PECL dbase 7.0.0 database is now a resource instead of an int . 例 例1 dbase_numfields() Example <?php $rec = dbase_get_record ( $db ...
https://man.mtool.work/php/8.3/function.dbase-numfields.html
PREV 1 2 3 NEXT