Page 1 of 1

PHP Image Upload?

Posted: Tue Aug 18, 2009 7:34 pm
by JayGeePee
I am trying to figure out how I can allow my members to upload a picture from the members area that will show up in a certain area of a page.
My members have a duplicated version of my website, with there own referral URL - Like a affiliate website, for example: http://www.mysite.com, and there site: http://www.mysite.com/referral-IDThereName.php. I was wondering if I could allow them to upload a image to there referral URL page from the members area, along with text such as there name, etc. I'm looking to do strictly gif, or jpeg for security reasons. I was wondering if someone could help me out or point me to something like what I'm talking about.

Re: PHP Image Upload?

Posted: Tue Aug 18, 2009 7:43 pm
by jackpf

Re: PHP Image Upload?

Posted: Tue Aug 18, 2009 7:51 pm
by JayGeePee
Yeah I searched Google, but couldnt get a strait answer. What i'm looking for is like myspace. You upload your image and it shows up on your page.

Re: PHP Image Upload?

Posted: Tue Aug 18, 2009 8:25 pm
by jackpf
Well, I suggest you read one of those upload tutorials.

Then, you can rename the image to the person's username, or userid or whatever.

Then, on their profile, check if an image with their username exists, if so, display it.

However, if you want to allow multiple photos, you should probably use a database to store which picture is whose, and the filenames etc.

Tbh, I'd personally use a database from the offset. But if you're looking for something simple, the former should suffice.