| | I need the image upload script which automatically resized the image by specified size and store it in the specified folder. |
|
|
That looks really good, I should try it. Thanks
google is your friend
So, rude! The forums are created for the aim of helping and assisting people!
Google results show 126,000 responses : http://www.google.ca/search?hl=en&as_q...amp;safe=images
Might want to also check out Hotscripts.com : http://www.hotscripts.com/PHP/Scripts_and_...tion/index.html Try the third one on the Hotscripts list, for example. http://www.hotscripts.com/Detailed/66112.html Free, recent and the GD Library is installed on your trap17 account, so it should work fine here.
Here is great class for image resize http://www.phpclasses.org/browse/package/1450.html
You can also try www.picTarget.com, they are resizing image and storing in their server.
Ok, I will try to create my own.
You can use GD_LIB on php, to regenerate new Image with custom resolution. For the class img, u can find in phpclasses.org
Thanks.
Image Upload Replying to alex1985 Try this ============== <?php // Connect to database $errmsg = ""; If (! @mysql_connect("localhost","root","admin")) { $errmsg = "Cannot connect to database"; } @mysql_select_db("example"); // First run ONLY - need to create table by uncommenting this // Or with silent @ we can let it fail every sunsequent time ;-) $q = <<<CREATE Create table pix ( pid int primary key not null auto_increment,title text,imgdata longblob) CREATE; @mysql_query($q); // Insert any new image into database If ($_REQUEST[completed] == 1) { // Need to add - check for large upload. Otherwise the code // will just duplicate old file ;-) // ALSO - note that latest.Img must be public write and in a // live appliaction should be in another (safe!) directory. Move_uploaded_file($_FILES['imagefile']['tmp_name'],"latest.Img"); $instr = fopen("latest.Img","rb"); $image = addslashes(fread($instr,filesize("latest.Img"))); if (strlen($instr) < 149000) {mysql_query ("insert into pix (title, imgdata) values (\"".$_REQUEST[whatsit]."\", \"".$image."\")"); } else { $errmsg = "Too large!"; } } // Find out about latest image $gotten = @mysql_query("select * from pix order by pid desc limit 1"); If ($row = @mysql_fetch_assoc($gotten)) { $title = htmlspecialchars($row[title]); $bytes = $row[imgdata]; } else { $errmsg = "There is no image in the database yet"; $title = "no database image available"; // Put up a picture of our training centre $instr = fopen("../wellimg/ctco.Jpg","rb"); $bytes = fread($instr,filesize("../wellimg/ctco.Jpg")); } // If this is the image request, send out the image If ($_REQUEST[gim] == 1) { Header("Content-type: image/jpeg"); print $bytes; exit (); } ?> <html><head> <title>Upload an image to a database</title> <body bgcolor=white><h2>Here's the latest picture</h2> <font color=red> <?= $errmsg ?> </font> <img src=?gim=1 width=144><br> <?= $title ?> <hr> <h2>Please upload a new picture and title</h2> <form enctype=multipart/form-data method=post> <input type=hidden name=MAX_FILE_SIZE value=150000> <input type=hidden name=completed value=1> IMAGE: <input type=file name=imagefile><br> NAME: <input name=whatsit><br> PRESS: <input type=submit></form><br> <hr> </body> </html> -reply by Binu K James
Thanks. I need to associate with some another file. So, when I create that file, I let you know, just I will create another topic.
Latest Entries
That looks really good, I should try it. Thanks
Similar Topics
Keywords : image, upload,
GD library question (7) Hey fellow coders, I'm having a problem. If you output a im indentifier in php with gd libary. Need some help in creating or editing an xml file while viewing some o (5) Hello there and thanks for the helping hand you are offering. PHP newbie here! /ph34r.gif" File upload (1) I need to add a facility on my customer's website so his clients can send him jobs, typically In need of batch upload script (1) I'm in the process of making a photo gallery script. I need ideas on how to make a batch upload (13) I was really board a few days ago and decided to make a trap17 board status image for my sig Help (1) I need an animated gif image flipped using GD library in PHP. I wrote a script to flip still Also stop error if not found (1) Hi, I have come accross some starnge problem in PHP. I wanted to detect the image resolution in upload to server via ftp from your mobile phone :-) (8) wappyFTP v1.00 by wappy --- site: http://cult.trap17.com mail: admin@cult.trap17.com --- -Welcome (2) Does anyone know a code like the one ImageShack uses, like this one. That would be just found it on the net (35) This script was found on the net http://tips-scripts.com/?tip=watermark#tip B&T's Tips & a simple code to change text on an image (12) In search of dynamically changing quote, saying or all other types of text on an image I came across (10) what is a really good image gallery i can hook up for my phpnuke site?? something easy to set up to. PHP Photo And Image Gallery Script (2) This script is great and the documentation is excellent!! I have used it on my site without (2) Hi, I'm trying to upload rather large jpgs files (2560x1920 and ~ 2 megs in size) to my server I need that for image editing (1) I need a php editor whichc can be used for the image editing like FrontPage for HTML. Can any body PHP script help! (5) I'm trying to create a script that writes text to an image. CODE (6) Can anyone help me out again? Thanks. I need a code that has a basic form that allows you to Specifically, lines or regular polygons. (4) I've been experimenting a little with PHP's image functions and I was trying to see if I (0) This is what the script does: when a file is uploaded from a form, this script checks what directory Help.... plz... (0) Hey Guyz... I'm working on re-designing my website, and I need a way to set-up my affiliates (4) upload.php CODE <?php /********************************** * ** file directory list * Looking for image, upload,
|
|
![]() Image Upload - ?!? |
| ADD REPLY / Got an Opinion! | a humble request :-) | RAPID SEARCH! | Free Hosting | [X] |
|
Express your Opinions, Thoughts or Contribute more info. to help others. Ask your Doubts & Queries to get answers, So that "Together We can help others!" |
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP. | 500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE |
|