* a user is using it! We cannot lock anything since Web connections don't
* provide the ability to later unlock what we locked. Be smart, be safe.
*/
+/* {{{ proto bool filepro(string directory)
+ Read and verify the map file */
PHP_FUNCTION(filepro)
{
pval *dir;
RETVAL_TRUE;
}
+/* }}} */
/*
*
* Errors return false, success returns the row count.
*/
+/* {{{ proto int filepro_rowcount(void)
+ Find out how many rows are in a filePro database */
PHP_FUNCTION(filepro_rowcount)
{
FILE *fp;
RETVAL_LONG(records);
}
+/* }}} */
/*
*
* Errors return false, success returns the name of the field.
*/
+/* {{{ proto string filepro_fieldname(int fieldnumber)
+ Gets the name of a field */
PHP_FUNCTION(filepro_fieldname)
{
pval *fno;
RETVAL_FALSE;
}
+/* }}} */
/*
*
* Errors return false, success returns the type (edit) of the field
*/
+/* {{{ proto string filepro_fieldtype(int field_number)
+ Gets the type of a field */
PHP_FUNCTION(filepro_fieldtype)
{
pval *fno;
fno->value.lval);
RETVAL_FALSE;
}
+/* }}} */
/*
*
* Errors return false, success returns the character width of the field.
*/
+/* {{{ proto int filepro_fieldwidth(int field_number)
+ Gets the width of a field */
PHP_FUNCTION(filepro_fieldwidth)
{
pval *fno;
fno->value.lval);
RETVAL_FALSE;
}
+/* }}} */
/*
*
* Errors return false, success returns the field count.
*/
+/* {{{ proto int filepro_fieldcount(void)
+ Find out how many fields are in a filePro database */
PHP_FUNCTION(filepro_fieldcount)
{
FP_TLS_VARS;
/* Read in the first line from the map file */
RETVAL_LONG(FP_GLOBAL(fp_fcount));
}
+/* }}} */
/*
*
* Errors return false, success returns the datum.
*/
+/* {{{ proto string filepro_retrieve(int row_number, int field_number)
+ Retrieves data from a filePro database */
PHP_FUNCTION(filepro_retrieve)
{
pval *rno, *fno;
fclose(fp);
RETURN_STRING(readbuf,1);
}
+/* }}} */
#endif