473,461 Members | 1,099 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

PHP image upload and display

Hi,

I am a PHP Developer.can any one help me on image upload and
display of that image.what i want is uploading an image to a
directory ,displaying of that image as a thumbnail.when i click on
that image the image should be diplayed in another page.

I wrote code for image uploading and as well as display code.but i
failed in image resizing when click on that :(

can anyone come up with code for this ,
asap.Otherwise suggest me a way how to get this.

Thanks.

Sep 16 '05 #1
2 4146

Faree wrote:
Hi,

I am a PHP Developer.can any one help me on image upload and
display of that image.what i want is uploading an image to a
directory ,displaying of that image as a thumbnail.when i click on
that image the image should be diplayed in another page.

I wrote code for image uploading and as well as display code.but i
failed in image resizing when click on that :(

can anyone come up with code for this ,
asap.Otherwise suggest me a way how to get this.

Thanks.

have a look at imagecopyresampled() and generate and store a thumb when
uploading the original

micha

Sep 16 '05 #2
Faree wrote:
Hi,

I am a PHP Developer.can any one help me on image upload and
display of that image.what i want is uploading an image to a
directory ,displaying of that image as a thumbnail.when i click on
that image the image should be diplayed in another page.

I wrote code for image uploading and as well as display code.but i
failed in image resizing when click on that :(

can anyone come up with code for this ,
asap.Otherwise suggest me a way how to get this.

Thanks.


Hi,

So the upload part works?
Good.
Resizing is easier. :-)

Resampling is better.

Have a look at:
http://nl2.php.net/manual/en/functio...yresampled.php

It contains examples too.

I suggest you store the original and the tumbnail both on your filesystem.

Good luck.

Regards,
Erwin Moller
Sep 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Gary \(Girish\) | last post by:
Hello: I am using SA-FileUp to enable members to upload their product images to my ISP sever. When member uploaded a new image file, the file name is replaced with the member ID and the old file...
2
by: Tyrone Slothrop | last post by:
I am coding a site which involves uploading images. All of the PHP and display is OK but the client wants to be able to display the image thumbnail on the upload page and show the full image on...
11
by: bissatch | last post by:
Hi, I am trying to upload an image, create a new file based on that image and then store the base64 encoded image data in a database. I dont really know where my code is going wrong so I will...
0
by: Satish Appasani | last post by:
Hi: I have a ASP.NET form with Web layout which I've achieved using panels. In one of the tab I have a File control to upload Images. When I put a file in the file control and move to another...
1
by: Adam | last post by:
I am having difficulty retrieving images from a SQL database. Here is the code I use to UPLOAD the image to the database: <form id="Form1" method="post" enctype="multipart/form-data"...
2
by: Poppa Pimp | last post by:
ImageResizer.php Image Resizer PLEASE HELP The URL of the page this is on in my site is http://poppa-pimps-wallpapers.com//ImageResizer.php You can click on browse and get image,but...
7
by: xx75vulcan | last post by:
Hi, I've got a PHP Upload Form that works great, unless that is, the image your uploading has been modified through a photo editing software. Example: if I upload the image straight from a...
1
by: amritranjan | last post by:
How to retrive image file from MS access database and display this in another JSPpage -------------------------------------------------------------------------------- This is my Jsp code for...
1
by: zandrew | last post by:
Hello there everyone. For a summer project I'm doing, I have to use a phone to pass an image I've taken (on the phone) to a dedicated server I've made on a local ubuntu machine. For the upload code,...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.