Page 1 of 1

Anybody know of any free decent image uploading scripts?

Posted: Thu Dec 04, 2008 2:46 pm
by SteveC
Hi everybody,

I'm Steve - new here! I've been looking for a PHP forum for a while but this is the first one I've actually joined.

My site has lots of members, and one feature I want to offer is photo hosting. However, I want to make uploading the photos as painless as possible. Allowing the members to open an applet where they can browse their computer, check photos they want to upload, click upload and see the end result would be ideal. Does anybody have any experience in this area that they'd care to share?

Steve.

Re: Anybody know of any free decent image uploading scripts?

Posted: Thu Dec 04, 2008 5:52 pm
by Peter Anselmo
Hi Steve,

There's two parts to your questions - the first is having the user select and submit an image. The second is having php process and store that image.

For the first part - If you use "file" as an input type in a form, it will automatically pop up an applet where the user can select their file. A complete sample may look like this:

Code: Select all

<form method="post"  enctype="multipart/form-data" action="your_url_here">
<input type="file" name="image" />
<input type="submit" value="Upload" />
</form>
For the second part - you can access the image from php in the $_FILES array.

Code: Select all

$uploadedImage = $_FILES['image'];
Then it gets tricky, because now you have to resize it, convert it, save it, and display it. :P I would search google for a "PHP Image Class" which will process the image and save it. You can also find lots of good info in the PHP Manual about image processing. It will probably take a lot of trial and error, but stick with it, and be sure to post any specific questions you get.

Re: Anybody know of any free decent image uploading scripts?

Posted: Fri Dec 05, 2008 12:30 am
by alex.barylski
Anybody know of any free decent image uploading scripts?
Does anybody have any experience in this area that they'd care to share?
Here is my best experience...in software your given a pie with three parts...I love Pie. :P

The three peices of pie are as follows:

1. Fast
2. Good
3. Cheap

The only caveat when it comes to this pie, is you can only ever have 2 of the 3 peices, never more...only less. :P

p.s-Uploading images is easy...making it secure and reliable is another story all togather. Have you searched SourceForge? How about HotScripts? There are literally countless image uploading scripts...

Gallery2 is a well known, powerful image manager...and it's free and very customizable...but it's not fast, easy or painless to use...

Cheers,
Alex

Re: Anybody know of any free decent image uploading scripts?

Posted: Fri Dec 05, 2008 11:40 am
by SteveC
Peter Anselmo wrote:Hi Steve,

There's two parts to your questions - the first is having the user select and submit an image. The second is having php process and store that image.

For the first part - If you use "file" as an input type in a form, it will automatically pop up an applet where the user can select their file. A complete sample may look like this:

Code: Select all

<form method="post"  enctype="multipart/form-data" action="your_url_here">
<input type="file" name="image" />
<input type="submit" value="Upload" />
</form>
For the second part - you can access the image from php in the $_FILES array.

Code: Select all

$uploadedImage = $_FILES['image'];
Then it gets tricky, because now you have to resize it, convert it, save it, and display it. :P I would search google for a "PHP Image Class" which will process the image and save it. You can also find lots of good info in the PHP Manual about image processing. It will probably take a lot of trial and error, but stick with it, and be sure to post any specific questions you get.
Hey, thanks for the reply. This much I've managed to do, the problem is that many of the members complain about how long it takes to upload. I know that improving the user experience makes it more likely that these people will stay at the site, and so now I've got to find some way to basically streamline the whole process.

Re: Anybody know of any free decent image uploading scripts?

Posted: Fri Dec 05, 2008 11:42 am
by SteveC
PCSpectra wrote:
Anybody know of any free decent image uploading scripts?
Does anybody have any experience in this area that they'd care to share?
Here is my best experience...in software your given a pie with three parts...I love Pie. :P

The three peices of pie are as follows:

1. Fast
2. Good
3. Cheap

The only caveat when it comes to this pie, is you can only ever have 2 of the 3 peices, never more...only less. :P

p.s-Uploading images is easy...making it secure and reliable is another story all togather. Have you searched SourceForge? How about HotScripts? There are literally countless image uploading scripts...

Gallery2 is a well known, powerful image manager...and it's free and very customizable...but it's not fast, easy or painless to use...

Cheers,
Alex

Hi Alex,

Thanks, that'll be helpful. I'll take a look at Gallery2.

I've only ever really checked Google. I guess I'll have to settle for something and just install it. Eventually I'd like to write my own applet, but I'm not quite confident enough to do that yet.

Steve.