[PHP] Practical functions 8_php Tips

Source: Internet
Author: User
Tags dbase mixed
Set up dBASE data sheet

int dbase_create (string filename,array fields)
Open the dBASE data table

int Dbase_open (string filename,int flags)
Close dBASE Table

Boolean dbase_close (int dbase_identifier)
Clean up the dBASE data table

BOOL Dbase_pack (int dbase_identifier)
Join Record to dBASE table

BOOL Dbase_add_record (int dbase_identifier,array record)
Delete a record from a dBASE table

BOOL Dbase_delete_record (int dbase_identifier,int record)
Get Records of dBASE tables

Array Dbase_get_record (int dbase_identifier,int record)
Get the number of fields in the dBASE table

int dbase_numfields (int dbase_identifier)
Get the number of records in the dBASE table

int_dbase_numrecords (int dbase_identifier)
Open the directory and return to a Dir_handle

int Opendir (string path)
Close the directory connection by the DIR_HANDLE flag

void Closedir (int dir_handle)
Change the current working directory

int chdir (string directory)
Get Current working directory

String getcwd (void)
Wrap the Dir_handle to the beginning

VOD rewinddir (int dir_handle)
Read directories one by one from the Dir_handle

String Readdir (int dir_handle)
To obtain the free disk space of the file system where path is located, in bytes

Double Diskfreespace (String directory)
Change the owner of the document

BOOL Chown (string filename,mixed user)
Change the group properties of a file

BOOL Chgrp (String filename,mixed Group)
Change file properties

BOOL Chmdo (string Filename,int mode)
To set the modification time for a file

BOOL Touch (string Filename,int [TIME])
Get file access (returned in eight form)

int fileperms (string filename)
Get I-node (index node) information for a file

int Filenode (string filename)
Get File size

int filesize (string filename)
Get the UID value of a file

int Fileowner (string filename)
Get the GID value of a file

int filegroup (string filename)
Get file type, possible return types are FIFO, char, dir, block, link, file and unknown, etc.

String filetype (string filename)
Returns true if the file conforms to the property specified by XXX. 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.