Query: px_new
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
PX_NEW(3) PX_NEW(3) px_new - Create a new paradox objectSYNOPSISresource px_new (void )DESCRIPTIONCreate a new paradox object. You will have to call this function before any further functions. px_new(3) does not create any file on the disk, it just creates an instance of a paradox object. This function must not be called if the object oriented interface is used. Use new paradox_db() instead.RETURN VALUESReturns FALSE on failure.EXAMPLESExample #1 Opening a Paradox database <?php if(!$pxdoc = px_new()) { /* Error handling */ } $fp = fopen("test.db", "r"); if(!px_open_fp($pxdoc, $fp)) { /* Error handling */ } // ... px_close($pxdoc); px_delete($pxdoc); fclose($fp); ?> If you prefer the object oriented API, then the above example will look like the following. Example #2 Opening a Paradox database <?php $fp = fopen("test.db", "r"); $pxdoc = new paradox_db(); if(!$pxdoc->open_fp($fp)) { /* Error handling */ } // ... $pxdoc->close(); fclose($fp); ?>SEE ALSOpx_delete(3), px_open_fp(3). PHP Documentation Group PX_NEW(3)
Related Man Pages |
---|
px_insert_record(3) - debian |
px_set_inputencoding(3) - debian |
px_create_fp(3) - php |
px_new(3) - php |
px_timestamp2string(3) - php |
Similar Topics in the Unix Linux Community |
---|
Hello, Gollum |
Opening a file during FTP |
domingo 1.5 (Default branch) |
domingo 1.5.1 (Default branch) |
Exception Error Handling Implementation in MySQL/VB.NET Windows Database Applications |