User Image upload/folder creation?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
CaptainKirby
Forum Newbie
Posts: 1
Joined: Wed Mar 17, 2010 1:14 pm

User Image upload/folder creation?

Post by CaptainKirby »

First of all sorry if I posted in the wrong section, I'm sure someone can move it if so? :P

Now for my question.
I have a very basic user system running, nothing fancy(sessions).
My goal, if you can call it that is have the user create an account, be able to upload pictures and have them shown on his or hers own profile page, which should be prefferably viewable by a subdirectory like http://mydomain.com/usersname/ and not just http://mydomain.com/userinfo.php?user=xxxx
Many sites do it, one example could be blogspot etc.

How do I go about this?
I have thought of having the folder magically being created upon registering, or making it a process the user can do after registering, in the user CP...
Or is there a clever way of doing this without the hassle of having a new folder made and such?

Also the images, this I guess is somewhat a imilar problem. I have made a simple image upload before but then it was just, upload images THERE and I could just pull the info from the database. Now I want it to be seperated by user etc.
Am I way in over my head?

Thanks in advance for any input :)
User avatar
infolock
DevNet Resident
Posts: 1708
Joined: Wed Sep 25, 2002 7:47 pm

Re: User Image upload/folder creation?

Post by infolock »

I think what you want is mod_rewrite
Post Reply