The Little Guy Posted August 11, 2011 Share Posted August 11, 2011 I am making a php flat file database, and I am trying to think of a way to separate columns and rows from each other. I don't want to CSV style, but more of a database style. NULLs can not be used as column separators because the flat file accepts that as a column value. So basically what should I do to separate fields from one another and separate one record from another record. Any suggestions on an approach to this? Quote Link to comment https://forums.phpfreaks.com/topic/244531-php-flat-file-database/ Share on other sites More sharing options...
Maq Posted August 11, 2011 Share Posted August 11, 2011 So basically what should I do to separate fields from one another and separate one record from another record. Any suggestions on an approach to this? If you really want to make your own, see how SQLite does it. Quote Link to comment https://forums.phpfreaks.com/topic/244531-php-flat-file-database/#findComment-1256039 Share on other sites More sharing options...
The Little Guy Posted August 11, 2011 Author Share Posted August 11, 2011 do string values like these have a name, and is there a list of them anywhere? Examples: \0 \n \r Quote Link to comment https://forums.phpfreaks.com/topic/244531-php-flat-file-database/#findComment-1256052 Share on other sites More sharing options...
Philip Posted August 11, 2011 Share Posted August 11, 2011 Those are escape sequences. They vary on the language, although roughly they are the same across the board: http://php.net/manual/en/language.types.string.php#language.types.string.syntax.double Quote Link to comment https://forums.phpfreaks.com/topic/244531-php-flat-file-database/#findComment-1256056 Share on other sites More sharing options...
The Little Guy Posted August 11, 2011 Author Share Posted August 11, 2011 Yeah, I saw that, but it isn't a full enough list. I can't find any other list though. Quote Link to comment https://forums.phpfreaks.com/topic/244531-php-flat-file-database/#findComment-1256060 Share on other sites More sharing options...
Philip Posted August 11, 2011 Share Posted August 11, 2011 What more are you looking for? That's a pretty complete list, its just spelling out all of the hex/octal notations. Quote Link to comment https://forums.phpfreaks.com/topic/244531-php-flat-file-database/#findComment-1256109 Share on other sites More sharing options...
phpSensei Posted August 12, 2011 Share Posted August 12, 2011 Sorry to be off topic, but The Little Guy, were you not a staff member? Guru? I can't remember.. Quote Link to comment https://forums.phpfreaks.com/topic/244531-php-flat-file-database/#findComment-1256193 Share on other sites More sharing options...
The Little Guy Posted August 12, 2011 Author Share Posted August 12, 2011 No. Quote Link to comment https://forums.phpfreaks.com/topic/244531-php-flat-file-database/#findComment-1256227 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.