• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

PHP CSV file as database table

p0lar

Senior member
Just curious -- I need to build a quick stand-alone application and prefer not to involve a formal database whatsoever for reasons not worth discussing. Performance is a non-issue, and filesystem security is adequate as it will never see the light of the Internet.

Perl has the DBI module with CSV functionality that even works well with the SQL update syntax, is there anything for PHP or is this like reading in the entire file as an array, modifying it, then spitting it back out? (ugh)

Any pointers are appreciated.
 
Something like this? I use that function to read in values from a CSV file.

As for outputting, it looks like there's this, but it's only for PHP versions > 5 which you may or may not have.
 
Back
Top