Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6205279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:14:41+00:00 2026-05-24T05:14:41+00:00

I want to create flex/actionscript directory view for my files with php/mysql. I have

  • 0

I want to create flex/actionscript directory view for my files with php/mysql. I have some ideas that I want to share:

1)I am thinking of creating table (in mysql) “files” and another table “folders”, when user loges in i will require all data from “files” and “folders” where Username = ‘something’. But the problem is, I will create a lot of entries inside of tables. For example if I will have 100 users, and each user could create 100 entries (files or folders) it means that i will get 10000 entries inside table.

2)My second idea, and I think more safe way of doing it is creating table “users” where will be set id, username, password, … , files, folders. In files (text format entry) will be listed information about files, and they will be dividend by “*” symbol like this:

id*file name*size(in kbytes)*path*status 
example:
15*test.exe*150*/root/*private
16*test2.exe*200*/root/folder1/*public
17*test3.exe*5600*/root/folder1/subfolder/*private
...

This info will be outputed when flex once when user loges in, and actionscript will catch it. But the problem is that when i will edit 1 file info (for example 1 file name “test.exe” to “editedtest.exe”) i will load back in mysql all data:

15*editedtest.exe*150*/root/*private 
16*test2.exe*200*/root/folder1/*public
17*test3.exe*5600*/root/folder1/subfolder/*private

Now here is only 3 file info but there can be more than 1000.

so what do you think, how can I solve my task? Or is it better way of doing it and I just don’t know about it? Please write your suggestions and thoughts.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T05:14:42+00:00Added an answer on May 24, 2026 at 5:14 am

    I will use the term “filesystem” to represent the file/folders structure for each user.

    Do not be afraid of a huge amount of lines in your db, databases are designed to handle this.

    Also, i
    t provides you many advantages :

    • lazy loading : in you directory tree, you can fetch only the root directories/files for the current user, and when the user wants to go in a subfolder, you can load the content of this subfolder. If you store the whole filesystem structure in a string, you have to load the entire structure even if you do need just one line
    • unit updates : with a database, you can update a file/folder without loading the full filesystem structure
    • less code : you won’t have to parse the text string to re-create the path, you can store it “as is” in the database
    • indexation : if you store one file/folder per row, you can index these to accelerate searches. If you store the entire filesystem structure in it’s owner row, you cannot perform searches efficiently.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some data passed into the flex via webservices, and want to create
Hi I want to create a flex web page. Basically I have some menubaritems
If you create a pure ActionScript project in Flex Builder 3 and want to
I want to create two widgets in flex. One for the movies ( that
I have an actionscript class in my flex app that looks like this: package
I have a flex application that loads swf files and displays them using the
Using Flex Builder : I have created a new Actionscript Project. I want to
I want to create a tree that it's child nodes contain specific flex components
Basically I want to override some function in the flex/actionscript list class which creates
I want to create a web page that contains an (Flex/Flash) audio player that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.