[PHP-DB] FLAT FILE database questions.

2002-10-08 Thread Negretti, John (CCI-San Diego)

Hello All,

Well, I'm in a situation where I would like to ONLY use a flat file database.  
I have searched hi and low, though could not find too many resources.  So, I am 
creating my own libraries utilizing arrays.  Does anyone have any good links for FLAT 
FILE databases.  Thanks alot. :-)

John Negretti
Web Applications Developer
Cox Communications

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DB] PHP and databases? ...without MySQL and such

2002-10-23 Thread Negretti, John (CCI-San Diego)
PHP-nites,

I want to thank you all for your insight on PHP and database options, particularly to 
FLAT FILES.

Many of you commented on using MySQL or Oracle and such, commenting how better it 
would be.  I STRONGLY agree that using MySQL or any DMBS database application is a FAR 
better options.  Although I am in a situation where I can only use FLAT FILE 
databases.  I know it is not the best solution, but better than no database at all.  I 
have looked into your suggestions on using dbase_create, php_dbase.dll, dbm, 
dba, xml, com and such, yet without finding a real solution.  So, I am 
developing my own custom functions to maintain FLAT FILE databases.

-
EXAMPLES:
-
$conf_array = _FILEDB::Open( '/data/file.txt' );

_FILEDB::Edit( $conf_array, $line_id, $header, $new_value );
_FILEDB::Search( $conf_array, 'LIKE', 'joh*' );
_FILEDB::SearchHeader( $conf_array, 'LIKE', 'FNAME', 'John' );

Well, when I get done I'll post a link to download it for free.  I know everyone is 
PRO MySQL, so am I.  I just think flat files should not be excluded.  Again, thank you 
all for your help.

John Negretti

 

 -Original Message-
 From: Negretti, John (CCI-San Diego) 
 Sent: Tuesday, October 22, 2002 9:00 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: [PHP-WIN] PHP and databases? ...without MySQL and such
 
 
 Hello All,
 
   I am somewhat new to PHP and I have a question relating 
 to FLAT FILE databases.  First let me give an introduction to 
 my question.
 
 I used to work at a company (www.miva.com) where we developed 
 our own scripting language Miva Script, so my only 
 experience with PHP was for comparison and such.  The company 
 was not doing so good and was barley afloat, so I left.  In 
 my efforts to find a new scripting language I choose PHP over 
 ColdFusion, even though Miva Script was so similar to 
 ColdFusion.  I am loving PHP, I never realized just how 
 extensive PHP is.  Now I am at a big company where red tape 
 has to be dealt with before I could get access to a database 
 server.  With the Miva Script language it has it's own 
 built-in database (dBASE-DBF), so databases were never a 
 problem with web development.  So, I am stuck with either 
 using PHP and finding a solution or reverting to Miva 
 Script, which I do NOT want to do, of course I want to stay 
 with PHP.  I have been doing some research on google.com and 
 such and have not found too much information on PHP with Flat 
 File or DBF databases.  I did find some PHP scripts working 
 with Flat File databases, but not really what I need.  Does 
 anyone have any suggestions, or is PHP mostly just for MySQL and such.
 
 I am developing some PHP classes/functions that are utilizing 
 file() and array() to read and edit my flat files.  It's 
 not perfected yet and I am running into difficulties here and 
 there and this is why am I asking for any opinions or 
 comments on available resources.  When I get done with it 
 I'll post it for free at www.ideablue.com (my personal site). 
  Well, I do give thanks in advance for any help.
 
 NOTE: I think PHP is a great language and I do hope to stick 
 with it.  There are many great resources like 
 www.phpbuilder.com, www.phpbeginner.com and the extensive 
 documentation at www.php.net.  Thanks to all that help us new 
 PHP developers.
 
   John Negretti
   Web Applications Developer
   Cox Communications www.cox.com
 
 
 -- 
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php