![]() |
|
#1
|
|||
|
|||
upload thumbnailhi,
i got problem regarding uploading thumbnails from any location or if i just copy the image name in the below text field let say egg.gif it will upload the thumbnail is it possible or everytime i have to click on browse to get the complete location to get the thumbnail. anybody please let me know how to upload thumbnails so that when i submit the form i can get thumbnails in same page as well as when i add 2nd,3rd iamges and so on it will add one another in same page like 3.egg.gif and so on in ascending order 2.flower.gif 1.bus.gif <form action="" method="post" enctype="multipart/form-data"> <input type="hidden" name="tree" value="<?=$tree ?>" /> <table border="0" cellpadding="0" cellspacing="5"> <tr> <td> </td> --> <td align="right"><input type="file" name="file" /></td> <td colspan="5" align="center"> <br /><input class="biggray" type="submit" name="submit" value="TRANSFER" /> </td> </tr> </table><br /> </form> thanks in advance |
|
#2
|
|||
|
|||
|
This tutorial will explain how to upload files:
www.phpbuilder.com To maintain a numbering for each thumbnail, you'll have to store info about each image somehow. A text file or a database will do nicely, and you can then store a text comment about each thumbnail as you wish. GF |
|
#3
|
|||
|
|||
|
thanks garth for your sincere advice ,well i tried to do something like this i m having all images stored in folder let say ../asset/upload
so when im trying to upload then system process become so slow and its very time taking to get image could you please let me know in which line the error is PHP Code:
and how i can ge image size 170*111pixels is it possible thanks in advance |
|
#4
|
|||
|
|||
|
I can't see offhand why the script is slowing down yor PC/server. File system functions do slow things down a little, but you shouldn't notice it that much.
How big are the images that are being uploaded. If you're uploading 5mb images over a 56k modem, it will be slow, and the server will slow down, waiting and waiting... Try sticking in some timing code,to see what is taking time.www.desilva.biz You can resize images to exact numbers using the GD library, but it's tough to learn. Have a look at this script off Hotscripts.com: www.hotscripts.com. GF |
|
#5
|
|||
|
|||
|
thanks alot but i tried to upload image from (../assets/upload)which is 3.4kb size but still the system becoms too slow
and may be im using PHP version 4.0.6 which i dont have rights to update and GD librarries :------ GD Support enabled GD Version 1.2 hope you have any clue for this |
|
#6
|
|||
|
|||
|
sorry Pyro for late reply as im using older version of PHP 4.0.6
as i dont ahve any rights to update it moreover its on remote server and GD library:------- GD Support enabled and GD Version 1.2 i can explain you once again whats the problem actually there is path in server ../assets/upload and here everyday all thumbnails is stored and clients have rights to upload all these thumbnails to his machine for that when he uplaod and submit the form he can see thumbnails and when i try below code it works for all functions like it checks whether file is more and file exits or not but never tells that it uploaded sucessfully,but i will be very glad if you modify htis code so that it can print all thumbnails in order from altest to older thumbnails PHP Code:
|
Recent GIDBlog
Toyota - 2008 July Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| VALIDATING file types on an PHP upload script? | JdS | MySQL / PHP Forum | 0 | 02-Jan-2003 07:58 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The