[PHP] practical functions 8

Source: Internet
Author: User
Tags dbase
[PHP] practical functions 8 // Create a dBase data table

Int dBase_create (string filename, array fields)
// Open the dBase data table

Int dbase_open (string filename, int flags)
// Close the dBase table

Boolean dbase_close (int dbase_identifier)
// Clear the dBase data table

Bool dbase_pack (int dbase_identifier)
// Add records to the dBase data table

Bool dbase_add_record (int dbase_identifier, array record)
// Delete the records of the dBase data table

Bool dbase_delete_record (int dbase_identifier, int record)
// Obtain the dBase data table record

Array dbase_get_record (int dbase_identifier, int record)
// Obtain the number of fields in the dBase data table

Int dbase_numfields (int dbase_identifier)
// Obtain the number of records in the dBase data table

Int_dbase_numrecords (int dbase_identifier)
// Open the directory and return a dir_handle

Int opendir (string path)
// Close the directory connection marked by dir_handle

Void closedir (int dir_handle)
// Change the current working directory

Int chdir (string directory)
// Obtain the current working directory

String getcwd (void)
// Round the dir_handle back to the beginning

Vod rewinddir (int dir_handle)
// Read directories one by one from dir_handle

String readdir (int dir_handle)
// Obtain the free disk space of the file system in which path is located, in bytes

Double diskfreespace (string directory)
// Change the owner of the file

Bool chown (string filename, mixed user)
// Change the group attribute of a file

Bool chgrp (string filename, mixed group)
// Modify file attributes

Bool chmdo (string filename, int mode)
// Set the file modification time

Bool touch (string filename, int [time])
// Get the object access permission (return in octal format)

Int fileperms (string filename)
// Obtain the I-node (index node) information of the file

Int filenode (string filename)
// Obtain the file size

Int filesize (string filename)
// Obtain the UID value of the object

Int fileowner (string filename)
// Obtain the GID value of the object

Int filegroup (string filename)
// Obtain the file type. the possible types returned include fifo, char, dir, block, link, file, and unknown.

String filetype (string filename)
// If the object meets the property specified by xxx, true is returned. Xxx is dir, executable, file, link, readable, writeable, etc.

Bool is_xxx (string filename)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.