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_create_fp(3) - debian |
| px_retrieve_record(3) - php |
| px_date2string(3) - php |
| px_get_info(3) - php |
| px_set_blob_file(3) - php |
| Similar Topics in the Unix Linux Community |
|---|
| Hello, Gollum |
| Opening a file during FTP |
| domingo 1.5 (Default branch) |
| Exception Error Handling Implementation in MySQL/VB.NET Windows Database Applications |
| Zeno's Paradox |