Jump to content

Where should data first be stored


CrimpJiggler

Recommended Posts

Often times I need to convert between PHP Arrays, MySQL, XML, JSON sqlite etc. Lately I've been just building PHP arrays with all the data. Its a big hassle though when theres a lot of data. I'm thinking I should have one central location that I store data in, then export to other formats from there, but I dont know what that central location should be. I like MySQL because I'm used to it. Sometimes its not an option though, like if I need to make a really light script, I dont want the hassle of connecting to MySQL. Would XML be the best place to store data, then from the XML file I can convert it to whatever format I want?

Link to comment
Share on other sites

Is that a good way to do it? How would I do structure it hierarchically? Right now I want to make a list of browser plugins that I find exceptionally useful, and they need to be categorised by what browser they are for, and what purpose (i.e. programming, security, downloading, flash/java compatibility etc.). I suppose I could do that with a spreadsheet, I just make special rows that say "BROWSER", then a special row for each category within that browser.

 

I don't know though, a database or XML file seems much easier. I started using OpenOffice Base and its pretty useful for converting between database and spreadsheets. I started looking at those .sqlite files in the .mozilla/firefox folder and that got me interested. I like the idea of having small database files like that but I don't know anything about sqlite yet.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.