Is this correct explanation of that specific line ?
Create array named 'a' indexed with first field with conditional value of : if first field exist in array a , set value to that array member, comma and second field, otherwise set the value to second field.
This will effectivley, append second field if array is defined with index of currently processing line, otherwise, create array member with value of second field.
Hi,
We recently purchased a 3 tb RAID. In the setup, it created 2 slices, one 2 tb and one 1 tb slice. Right now only the 2 tb slice is visible when booting up. I was told that the second slice needs to be mapped to a lun and a port like the first slice is.
Does anyone know how I would go... (1 Reply)
> how the sendmsg and recvmsg calls will know which kernel module to use (SCTP, RTP etc.) internally(kernel mapping: how kernel handle socket call) (1 Reply)
This is truly embarrassing but I have to know the answer anyway :p
Can anyone share, how to assign keyboard mapping in hp-ux system? Every time I issue command which contain character "@", it'll go the next line. What I need is how to assign the character "@" to @ as it is supposed to be.
... (2 Replies)
Hi,
I just started looking into various aspect of unix shell scripting. I am completely new to the world of UNIX. Could any one help me in solving the following requirement.
I have a parameter file with some data e.g.
sample.param
-------------
Andrew=201
Bob=219
Shelly=239... (4 Replies)
Hi All,
I am working on the Scenario where i need compare the integer value with other using bit mapping.
input file,
1,4,5,4
1,2,4,6
2,3,4,4 like i have many fields.
Script :
i need to filter hte field one value "1" and field 3 value "4" and Filed 4 i need to do the Bitwise... (5 Replies)
Hi All
i am a tad stuck i am trying to map alt gr key so that it acts as a Alt key
i tried xmodmap but it went very wrong and it disabled both alt gr and alt key
thanks
Adam (0 Replies)
Hi we have a situation where some printers are on a server that sometimes has to be rebooted. If this happens the Unix boxes we have that are referencing the printers in the vfstab file fail to work even when the print server is brought back up. Does anyone know if it would be possible to put... (0 Replies)
I have the following arrays with different lengths that I want to map them with the same key.
# Week numbers, 8 columns
@headers = ("2011-34", "2011-35", "2011-36", "2011-37", "2011-38", "2011-39", "2011-40", "2011-41");
%data = ("2011-34", BCE,
"2011-35", YZA,
"2011-36",... (5 Replies)
Hello,
I do not know if this is the right title to use. I have a large dictionary database which has the following structure:
where a b c d e are in English and p q r s t are in a target language., the two separated by the delimiter =.
What I am looking for is a perl script which will take... (5 Replies)
Discussion started by: gimley
5 Replies
LEARN ABOUT PHP
px_create_fp
PX_CREATE_FP(3)PX_CREATE_FP(3)px_create_fp - Create a new paradox databaseSYNOPSIS
bool px_create_fp (resource $pxdoc, resource $file, array $fielddesc)
DESCRIPTION
Create a new paradox database file. The actual file has to be opened before with fopen(3). Make sure the file is writable.
Note
Calling this functions issues a warning about an empty tablename which can be safely ignored. Just set the tablename afterwards with
px_set_parameter(3).
Note
This function is highly experimental, due to insufficient documentation of the paradox file format. Database files created with this
function can be opened by px_open_fp(3) and has been successfully opened by the Paradox software, but your milage may vary.
PARAMETERS
o $pxdoc
- Resource identifier of the paradox database as returned by px_new(3).
o $file
-File handle as returned by fopen(3).
o $fielddesc
- fielddesc is an array containing one element for each field specification. A field specification is an array itself with either
two or three elements.The first element is always a string value used as the name of the field. It may not be larger than ten
characters. The second element contains the field type which is one of the constants listed in the table Constants for field
types. In the case of a character field or bcd field, you will have to provide a third element specifying the length respectively
the precesion of the field. If your field specification contains blob fields, you will have to make sure to either make the field
large enough for all field values to fit or specify a blob file with px_set_blob_file(3) for storing the blobs. If this is not
done the field data is truncated.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
Creating a Paradox database with two fields
<?php
if(!$pxdoc = px_new()) {
/* Error handling */
}
$fp = fopen("test.db", "w+");
$fields = array(array("col1", "S"), array("col2", "I"));
if(!px_create_fp($pxdoc, $fp, $fields)) {
/* Error handling */
}
px_set_parameter($pxdoc, "tablename", "testtable");
for($i=-50; $i<50; $i++) {
$rec = array($i, -$i);
px_put_record($pxdoc, $rec);
}
px_close($pxdoc);
px_delete($pxdoc);
fclose($fp);
?>
SEE ALSO px_new(3), px_put_record(3), fopen(3).
PHP Documentation Group PX_CREATE_FP(3)