Need help in PHP file Management System

Need help in PHP file Management System

am 17.09.2009 19:05:18 von Nagendra Prasad

--0015174413385038460473c906b8
Content-Type: text/plain; charset=ISO-8859-1

Hi All,

I need help in PHP file management system. So, I am working on my project in
which user will upload a file on the server. I know how to upload a file on
server using PHP. But the problem is how to differentiate the different
uploaded files with different users. Please help me with this.

Best,

--
Guru Prasad
Ubuntu Voice GTK+ Forum

--0015174413385038460473c906b8--

Re: Need help in PHP file Management System

am 17.09.2009 19:51:19 von Vinay Kannan

--00163646b612b4e53f0473c9a9e5
Content-Type: text/plain; charset=ISO-8859-1

I would think, since you already have different users, so most probably you
would be getting them registered, so maybe at the time of the registration,
you could create folders for each user, and the files they upload would be
on to the folders with their username, the folder securities on the server
should be taken care of.

for instance, if the user is say, Vinay (thats me)

and ur website is www.abcdefg.com then when i register, it would create a
folder for me, so the url would be something like www.abcdefg.com/vinay, and
the files uploaded by me would be in the folder vinay, but the files would
be accesible to me alone, not the other visitors of the website.

Guys please correct me if I am wrong, but I think this is a good possible
way of doing it.


Thanks,
Vinay Kannan

On Thu, Sep 17, 2009 at 10:05 AM, nagendra prasad
wrote:

> Hi All,
>
> I need help in PHP file management system. So, I am working on my project
> in
> which user will upload a file on the server. I know how to upload a file on
> server using PHP. But the problem is how to differentiate the different
> uploaded files with different users. Please help me with this.
>
> Best,
>
> --
> Guru Prasad
> Ubuntu Voice GTK+ Forum
>

--00163646b612b4e53f0473c9a9e5--

Re: Need help in PHP file Management System

am 17.09.2009 20:16:00 von Nagendra Prasad

--00504502ce402704b00473ca03f8
Content-Type: text/plain; charset=ISO-8859-1

Thanks Vinay,

I think you are right. I thought about it but then server will have to
manage huge set of folders. I also thought that what if we give a unique ID
for each file for each user. So, when user wants to access his file the code
should first checks if the unique ID and the username is matched. I just
have a rough idea. If someone got my points please explain it to me. Am not
sure this may be a solution.

Guys plz help me????

Best,

--00504502ce402704b00473ca03f8--

Re: Need help in PHP file Management System

am 17.09.2009 20:54:57 von Eric Lee

DQotLS0tLS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ZGlmaWVkLg0K dmVyc2lvbiBjb250
cm9sbGluZy4NCnRhZ2dpbmcgDQoNCnBscyBjb3JyZWN0IG1lIGlmIEknYW0g d3JvbmcgISEhDQoN
Ci0gRXJpYw0KDQo+IA0KPiBHdXlzIHBseiBoZWxwIG1lPz8/Pw0KPiANCj4g QmVzdCwNCj4=

Re: Need help in PHP file Management System

am 17.09.2009 21:10:52 von Nagendra Prasad

--001636c5a7fb5b9f590473cac78f
Content-Type: text/plain; charset=ISO-8859-1

Eric, I am new to file or content management. So, if possible can you send
me few scripts or some links from where I can learn more about it?


Best,

--001636c5a7fb5b9f590473cac78f--

Re: Need help in PHP file Management System

am 21.09.2009 08:30:12 von Velen

Hi Nagendra,

I would save the uploaded file in a format like "usernamefilename.ext"

For each user you just need to sort the directory and look for file starting
with username.

Hope this helps.

Velen

----- Original Message -----
From: "nagendra prasad"
To: "Vinay Kannan"
Cc:
Sent: Thursday, September 17, 2009 10:16 PM
Subject: Re: [PHP-DB] Need help in PHP file Management System


> Thanks Vinay,
>
> I think you are right. I thought about it but then server will have to
> manage huge set of folders. I also thought that what if we give a unique
> ID
> for each file for each user. So, when user wants to access his file the
> code
> should first checks if the unique ID and the username is matched. I just
> have a rough idea. If someone got my points please explain it to me. Am
> not
> sure this may be a solution.
>
> Guys plz help me????
>
> Best,
>


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Need help in PHP file Management System

am 21.09.2009 08:46:00 von Lester Caine

nagendra prasad wrote:
> Eric, I am new to file or content management. So, if possible can you send
> me few scripts or some links from where I can learn more about it?

Have a look at bitweaver ... http://bitweaver.org
What this does is creates a set of directories for storage, and under
that one directory for each user, and stores all their files within
their own base folder.

--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Need help in PHP file Management System

am 23.09.2009 18:02:36 von Vinay Kannan

--0016e649c004eb68b6047440d706
Content-Type: text/plain; charset=ISO-8859-1

Hi Nagendra,

Any progress on the task you were at?

On Fri, Sep 18, 2009 at 12:40 AM, nagendra prasad
wrote:

> Eric, I am new to file or content management. So, if possible can you send
> me few scripts or some links from where I can learn more about it?
>
>
> Best,
>
>

--0016e649c004eb68b6047440d706--

Re: Need help in PHP file Management System

am 23.09.2009 18:46:18 von Nagendra Prasad

--00151747b74a72a2150474417578
Content-Type: text/plain; charset=ISO-8859-1

Hi Vinay, Eric & Everyone,

Sorry, I was down with fever 'malaria' since last Friday. I was hospitalized
for 3 days. It will take more 2-3 days for me to start working again on my
project. Anyways till now I didn't get anything which will solve my issue.
Lets see if anyone comes with something new.

Best,

--00151747b74a72a2150474417578--