Hi,
I am creating an application using PHP. I am uploadig and would require 2 things to be done:
1) Can the images be resized when it is uploaded?
2) Can we automatically generate a thumbnail for these images?
Also, is it possible to upload a zip file using PHP?
Thanks
Image resizing
Moderator: General Moderators
#1 yes
#2 yes
#3 yes

#2 yes
#3 yes
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Image resizing
Can you please tell me how these can be done?
Thanks.
Thanks.
For resizing images, you're going to need to use GD, and the PHP functions that go with it -> Read Here
For uploading zip files, it's just like any other file. Just put it into your form, and upload
For uploading zip files, it's just like any other file. Just put it into your form, and upload
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Image resizing
Thanks for the reply.
I wanted to know once it is zipped, will I be able to unzip it on the server, or will i need to use the server functions to do that?
I wanted to know once it is zipped, will I be able to unzip it on the server, or will i need to use the server functions to do that?
Although I have never unzipped anything it should be possible. I don't believe there are any php functions for it (although there are classes that you can search for)
It also depends on what your server has. for example, if you have the gzip utitlity, you could do something like..
don't quote me on that though
I'm just throwing ideas out 
It also depends on what your server has. for example, if you have the gzip utitlity, you could do something like..
Code: Select all
exec("gzip -d $yourzipfile");Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Image resizing
Hi,
I am unable to find a function in the GD Library that would resize an image. Can you please help me with this.
The process is this, I am uploading an image and I need it resize it on the fly.
Thanks
I am unable to find a function in the GD Library that would resize an image. Can you please help me with this.
The process is this, I am uploading an image and I need it resize it on the fly.
Thanks