Store file names for further copy.

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
tua1
Forum Commoner
Posts: 28
Joined: Thu May 15, 2008 9:30 pm

Store file names for further copy.

Post by tua1 »

Hello

I try use search but found nothing useful, or maybe did it wrong way...
I am creating a simple file browser, that has similar behavior to windows explorer (ctrl+c etc), and I wonder why should I store file names witch I want to copy to other directory.

1. DB
2. Serialize
3. Session


What will be the best? or maybe there is an other option?

And another thing: is this worth business to create an object (eg. FileMessenger that stores
the current path and file names plus implement Iterator on it?) for sending it from controller to model? Is this good way?

Could anybody give me advice?
maneetpuri
Forum Commoner
Posts: 60
Joined: Tue Oct 07, 2008 6:32 am

Re: Store file names for further copy.

Post by maneetpuri »

Hi,

If you can give some inputs on the need that is making you think about developing this module then I might be able to suggest better. But for a thing like web based file manger, there are many pre-built solutions available and you find them easily on net.

As you are doing it web-based so you will have to define all the files & folders on which this fliemanger will work.

Cheers,
~Maneet
Post Reply