Most Referenced Functions
  » google_pagerank()
  » preg_replace()
  » imagecreatefrompng()
  » site_pageranks()
  » imagepng()
  » imagedestroy()
  » imagestring()
  » imagecolorallocate()
  » htmlentities()
  » preg_match()
  » fopen()
  » header()
  » getimagesize()
  » session_start()
  » preg_match_all()
  » htmlspecialchars()
  » ob_start()
  » ob_flush()
  » flush()
  » strstr()
  » strpos()
  » setcookie()
  » str_replace()
  » array2vars()
  » nl2br()
  » preg_split()
  » ereg()
  » ereg_replace()
  » urlencode()
  » readgzfile()

Become a sponsor for $15/month. Link is sitewide - PR5 homepage, 20+ PR4 pages, 90+ PR3 pages. Email dave[AT]icemelon[D0T]c0m.

PHP Functions

Function: ovrimos_rollback

(PHP 4 >= 4.0.3, PHP 5)

ovrimos_rollback -- Rolls back the transaction

Description

bool ovrimos_rollback ( int connection_id )

ovrimos_rollback() is used to roll back the transaction. Returns TRUE on success or FALSE on failure.

XCIX. Paradox File Access

Introduction

Warning

This extension is EXPERIMENTAL . The behaviour of this extension -- including the names of its functions and anything else documented about this extension -- may change without notice in a future release of PHP. Use this extension at your own risk.

This module allows to read Paradox database and primary index files. It has initial support for creating Paradox databases. Consider it to be experimental due to lack of documentation of the Paradox file format.

Note: This module has not been tested on other platforms than Debian/GNU Linux for PPC.

Note: This module is also in development and may change, though I don't expect major changes to the API.

Requirements

You need at least PHP 5.0.0 and libpx >= 0.1.9. The paradox library (libpx) is available at http://pxlib.sourceforge.net .

Installation

A short installation note: just type

$ pear install paradox
in your console.

Runtime Configuration

This extension has no configuration directives defined in php.ini .

Object oriented API

The paradox extension provides also an object oriented API. It consists of only one class called paradox_doc. Its methods only differ from the functions in its name and of course the missing first parameter. The following table will list all methods and its equivalent functions.

Table 1. Methods of class paradox_doc

Name of method Equivalent function Constructor px_new() Destructor px_delete() open_fp() px_open_fp() create_fp() px_create_fp() close() px_close() numrecords() px_numrecords() numfields() px_numfields() get_record() px_get_record() put_record() px_put_record() get_field() px_get_field() get_schema() px_get_schema() get_info() px_get_info() set_parameter() px_set_parameter() get_parameter() px_get_parameter() set_value() px_set_value() get_value() px_get_value() get_info() px_get_info() set_targetencoding() px_set_targetencoding() set_tablename() px_set_tablename() set_blob_file() px_set_blob_file() timestamp2string() px_timestamp2string()

Predefined Constants

The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.

The following two tables lists all constants defined by the paradox extension.

Table 2. Contants for field types

Name Meaning PX_FIELD_ALPHA Character data with fixed length PX_FIELD_DATE Date PX_FIELD_SHORT Short integer (2 Bytes) PX_FIELD_LONG Long integer (4 Bytes) PX_FIELD_CURRENCY same as PX_FIELD_NUMBER PX_FIELD_NUMBER Double PX_FIELD_LOGICAL Boolean PX_FIELD_MEMOBLOB Binary large object (not supported) PX_FIELD_BLOB Binary large object (not supported) PX_FIELD_FMTMEMOBLOB Binary large object (not supported) PX_FIELD_OLE OLE object (basically a blob, not supported) PX_FIELD_GRAPHIC Graphic (basically a blob, not supported) PX_FIELD_TIME time PX_FIELD_TIMESTAMP timestamp (like the unix timestamp) PX_FIELD_AUTOINC Auto incrementing interger (like PX_FIELD_LONG) PX_FIELD_BCD Decimal number stored in bcd format (not supported) PX_FIELD_BYTES Array of Bytes with not more than 255 bytes (not supported) PX_KEYTOLOWER   PX_KEYTOUPPER  

Table 3. Contants for file types

Name Meaning PX_FILE_INDEX_DB Indexed database PX_FILE_PRIM_INDEX Primary index PX_FILE_NON_INDEX_DB None indexed database PX_FILE_NON_INC_SEC_INDEX None incremental secondary index (not supported) PX_FILE_SEC_INDEX Secondary index (not supported) PX_FILE_INC_SEC_INDEX Incremental secondary index (not supported) PX_FILE_NON_INC_SEC_INDEX_G (not supported) PX_FILE_SEC_INDEX_G (not supported) PX_FILE_INC_SEC_INDEX_G (not supported)

Table of Contents px_close  -- Closes a paradox database px_create_fp  -- Create a new paradox database px_delete  -- Deletes resource of paradox database px_get_field  -- Returns the specification of a single field px_get_info  -- Return lots of information about a paradox file px_get_parameter  -- Gets a parameter px_get_record  -- Returns record of paradox database px_get_schema  -- Returns the database schema px_get_value  -- Gets a value px_new  -- Create a new paradox object px_numfields  -- Returns number of fields in a database px_numrecords  -- Returns number of records in a database px_open_fp  -- Open paradox database px_put_record  -- Stores record into paradox database px_set_blob_file  -- Sets the file where blobs are read from px_set_parameter  -- Sets a parameter px_set_tablename  -- Sets the name of a table (deprecated) px_set_targetencoding  -- Sets the encoding for character fields (deprecated) px_set_value  -- Sets a value px_timestamp2string  --  Converts the timestamp into a string.

Related Function(s)

  • px_new()
  • px_delete()
  • px_open_fp()
  • px_create_fp()
  • px_close()
  • px_numrecords()
  • px_numfields()
  • px_get_record()
  • px_put_record()
  • px_get_field()
  • px_get_schema()
  • px_get_info()
  • px_set_parameter()
  • px_get_parameter()
  • px_set_value()
  • px_get_value()
  • px_set_targetencoding()
  • px_set_tablename()
  • px_set_blob_file()
  • px_timestamp2string()
  • Icemelon -- PHP, CSS, Javascript Tutorials, & More!
      © 2005-2010 Icemelon.com   Email: dave[AT]icemelon[D0T]c0m